RailsCasts Pro episodes are now free!

Learn more or hide this

Cirdes's Profile

GitHub User: cirdes

Site: eventick.com.br

Comments by Cirdes

Avatar

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") }