diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-06 18:45:11 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-06 18:45:11 +0200 |
commit | 77ffadf166b9bc02b8e66949b5157ebf8375ec35 (patch) | |
tree | 315ab887fc493abadad0cd784874039fdf55a834 /config | |
parent | ef5ceea94aa60c4df8c653495bfd2bf1eb40e65a (diff) | |
download | incommon-map-77ffadf166b9bc02b8e66949b5157ebf8375ec35.tar.gz |
User Kaminari gem for pagination
Since we're dealing with lots of resources, we need a way to
handle pagination. This gem seems to be the new kid on the block
and doing things right, including pagination by default an I18n
support. Let's see.
Kaminari: https://github.com/kaminari/kaminari
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/kaminari_config.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/initializers/kaminari_config.rb b/config/initializers/kaminari_config.rb new file mode 100644 index 0000000..4ba6ee3 --- /dev/null +++ b/config/initializers/kaminari_config.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +Kaminari.configure do |config| + # config.default_per_page = 25 + # config.max_per_page = nil + # config.window = 4 + # config.outer_window = 0 + # config.left = 0 + # config.right = 0 + # config.page_method_name = :page + # config.param_name = :page + # config.max_pages = nil + # config.params_on_first_page = false +end |