Provides a pagination 'per page' interface for ActiveAdmin. It renders a sidebar section with a numeric select and modifies the Controller to use that 'per page' value.
Since activeadmin/activeadmin#3748 ActiveAdmin has native support for 'per page' interface. So this gem is now deprecated and will no longer maintained!
Add this line to your application's Gemfile:
gem 'active_admin_pagination'
And then execute:
$ bundle
ActiveAdmin.register Post do
pagination [10, 50, 100], 50
end
- Use
Kaminari.config.param_name
- Use
.arb
instead of.erb
views - Set ActiveAdmin dependency
- Set gemspec homepage
- Extend
Usage
section
- Fork it ( https://github.com/timoschilling/active_admin_pagination/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request