wade0727 said almost 5 years ago on Importing and Exporting CSV Data :
What's the best approach to this using the Kaminari Gem so that I can pull all rows in the index, not just the amount listed on the first page? ``` def index search = params[:term].present? ? params[:term] : nil @nodes = if search Node.search(search) else Node.order(:node).page(params[:page]) end respond_to do |format| format.html format.csv { send_data @nodes.to_csv, filename: "nodes-#{Date.today}.csv" } end end ```