LoginSignup
4
5

More than 5 years have passed since last update.

Rails での テーブルページングのサンプル。

Last updated at Posted at 2013-07-14

kaminari を使ってページングする例を github 上で見つけた。
- https://github.com/amatsuda/kaminari_example
 This is a sample Rails 3 application showing the basic and advanced usage of Kaminari paginator

ネット上でよくみかける Kaminari でのページングでは、ページ移動する際に画面全体の再描画が発生してしまう。
しかし、上の例では、テーブル部分だけが表示更新されように作成されている。

上の例も含め、Rais3 の練習プロジェクトに 4 つのテーブルページング例を実装してみた。
 https://github.com/katoy/rails3-files
1. クライアントサイドでの paging/sort/filtering (using list.js)
2. サーバーサイドでの paging/sort (more using kaminari, remote:true)
3. サーバーサイドでの paging/sort (paging table paging using kaminari, remote:true)
4. サーバーサイドでの paging/sort (paging table using Wicegrid)

( 例 2 では Chrome に AutoPagerize の拡張機能をいれていると、autopage も効きます。)

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5