Closed tommyalvarez closed 11 years ago
I solved it with overwriting the collection method like this:
controller do
protected
def collection
if params[:format].eql?("xlsx")
@users ||= User.all
else
@users ||= User.page(params[:page]).per(50)
end
end
end
hi @tommyalvarez
What @th1988 posted is exactly what you need to do. activeadmin-axlsx does not, and should not have any control over what the collection contains.
Hi! I couldn't find it anywhere, is there a way to export all records without pagination getting involved? E.g. I'm in the active admin index view of Users and when i export as xlsx only the current page is exported. How can i export ALL records?