Allow for pagination to be configured and disabled #497

Closed
jsmecham opened this Issue Sep 20, 2011 · 5 comments

Comments

Projects
None yet
7 participants
@jsmecham

Pagination needs to be configurable on a per-resource basis. Currently, Active Admin allows you to define a default number per page on an application-wide level, but not on a per-resource basis.

It would also be desirable to disable pagination altogether.

@dawidw

This comment has been minimized.

Show comment Hide comment
@dawidw

dawidw Sep 28, 2011

+1 for possibility to disable pagination.

dawidw commented Sep 28, 2011

+1 for possibility to disable pagination.

@knoopx

This comment has been minimized.

Show comment Hide comment
@knoopx

knoopx Oct 21, 2011

Contributor

Yes, disabling pagination is useful in some scenarios (drag-and-drop sorting on the index page)

Contributor

knoopx commented Oct 21, 2011

Yes, disabling pagination is useful in some scenarios (drag-and-drop sorting on the index page)

@galex

This comment has been minimized.

Show comment Hide comment
@galex

galex Nov 14, 2011

+1 for disabling pagination !

galex commented Nov 14, 2011

+1 for disabling pagination !

@knoopx

This comment has been minimized.

Show comment Hide comment
@knoopx

knoopx Nov 14, 2011

Contributor

This gist monkey-patches active admin and allows you to disable pagination on index action like this:

ActiveAdmin.register MyResource do
    index(:paginate => false) do
        ...
    end
end
Contributor

knoopx commented Nov 14, 2011

This gist monkey-patches active admin and allows you to disable pagination on index action like this:

ActiveAdmin.register MyResource do
    index(:paginate => false) do
        ...
    end
end
@mickeyren

This comment has been minimized.

Show comment Hide comment
@mickeyren

mickeyren Feb 1, 2012

thanks so much knoopx!!!

thanks so much knoopx!!!

pcreux added a commit to pcreux/active_admin that referenced this issue Feb 3, 2012

@gregbell gregbell closed this in 29fd48a Feb 3, 2012

@ghost ghost assigned pcreux Feb 14, 2012

luizfonseca added a commit to MateriaBrasil/active_admin that referenced this issue May 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment