Displaying 1 result from an estimated 1 matches for "download_blog_attachments_path".
2014 Mar 26
0
Heroku | Rails 4 | Ruby 2.0 - send_file not presenting file for download in the browser
...ms[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def blog_attachment_params
params[:blog_attachment]
end
app/views/blogs/show.html.erb
<% for attachment in @blog.blog_attachments %>
<%= link_to attachment.document_file_name, download_blog_attachments_path(id: attachment.id), remote: true, method: :get %>
<% end %>
Any help is greatly appreciated.
Thanks,
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, sen...