David Kimura PRO said almost 5 years ago on Importing and Exporting CSV Data :
You can do a check if the `request.format.csv?` is true and exclude the `page(params[:page])` method.