No commit activity in last 3 years
No release in over 3 years
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0

Runtime

= 1.0.0.pre
 Project Readme

ActiveAdminPagination

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.

⚠️ Unmaintained ⚠️

Since activeadmin/activeadmin#3748 ActiveAdmin has native support for 'per page' interface. So this gem is now deprecated and will no longer maintained!

Installation

Add this line to your application's Gemfile:

gem 'active_admin_pagination'

And then execute:

$ bundle

Usage

ActiveAdmin.register Post do
  pagination [10, 50, 100], 50
end

TODO`s

  • Use Kaminari.config.param_name
  • Use .arb instead of .erb views
  • Set ActiveAdmin dependency
  • Set gemspec homepage
  • Extend Usage section

Contributing

  1. Fork it ( https://github.com/timoschilling/active_admin_pagination/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request