diff --git a/bin/setup b/bin/setup old mode 100644 new mode 100755 diff --git a/lib/administrate/base_controller.rb b/lib/administrate/base_controller.rb index 664f3be..46c503a 100644 --- a/lib/administrate/base_controller.rb +++ b/lib/administrate/base_controller.rb @@ -6,7 +6,7 @@ def index resources = index_resources resources = apply_collection_includes(resources) resources = order.apply(resources) - resources = resources.page(params[:page]).per(records_per_page) + resources = resources.page(params[:_page]).per(records_per_page) respond_to do |format| format.json { render_index_json(resources) }