RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: cirdes
Site: eventick.com.br
Using send_data method I can pass filename like that format.csv { send_data @attendees.to_csv, {filename: filename}} How can I change the default filename for xls without using send_date?
format.xls # { send_data @products.to_csv(col_sep: "\t") }
Using send_data method I can pass filename like that
format.csv { send_data @attendees.to_csv, {filename: filename}}
How can I change the default filename for xls without using send_date?
format.xls # { send_data @products.to_csv(col_sep: "\t") }