We Recommend

The Rails Way The Rails Way
Now, for the first time, there’s a comprehensive, authoritative guide to building production-quality software with Rails. Pioneering Rails developer Obie Fernandez and a team of experts illuminate the entire Rails API, along with the Ruby idioms, design approaches, libraries, and plug-ins that make Rails so valuable.


Posted By

tonic on 07/03/08


Tagged

file rails type ruby download content render attachment


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

artmotion


Render file (no html)


Published in: Rails 


Send file from different name

  1. send_file 'path/file_003', :disposition => 'attachment; filename=image.jpg'

Report this snippet 

You need to login to post a comment.