If you want to have a pretty filename for your file, send this through a controller as well and use send_data.