search for: set_blog_attachment

Displaying 1 result from an estimated 1 matches for "set_blog_attachment".

2014 Mar 26
0
Heroku | Rails 4 | Ruby 2.0 - send_file not presenting file for download in the browser
...oad. Getting the file to download is working without issue. But getting the browser to present the file is my problem. I am looking for any help on what I could do to figure out what I may be doing incorrectly. Here is what I currently have: app/controllers/blog_attachments.rb before_action :set_blog_attachment, only: [:download] def download download_file(@blog_attachment) send_file("#{Rails.root}/public/blog_attachments/#{@blog_attachment.document_file_name}", filename: @blog_attachment.document_file_name, type: @blog_attachment.document_content_type,...