RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: erick75
apply the pagination until the format.html inside respond_to format.html { over here }
this way format.csv is not affected by paging
You can use <%= link_to "Excel", user_contacts_path(params.merge(format: 'xls')) %>
<%= link_to "Excel", user_contacts_path(params.merge(format: 'xls')) %>
and this will maintain the current parameters you have plus the ones you add or edit inside merge.
apply the pagination until the format.html inside respond_to
format.html { over here }
this way format.csv is not affected by paging
You can use
<%= link_to "Excel", user_contacts_path(params.merge(format: 'xls')) %>
and this will maintain the current parameters you have plus the ones you add or edit inside merge.