Displaying 1 result from an estimated 1 matches for "parsed_response".
Did you mean:
parse_response
2014 Mar 26
0
Heroku | Rails 4 | Ruby 2.0 - send_file not presenting file for download in the browser
...disposition: 'inline')
respond_to do |format|
format.js {}
end
end
private
def download_file(file)
File.open("#{Rails.root}/public/blog_attachments/#{file.document_file_name}",'wb') do |f|
f.write HTTParty.get(file.document.url).parsed_response
end
end
# Use callbacks to share common setup or constraints between actions.
def set_blog_attachment
@blog_attachment = BlogAttachment.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def blog_attachment_params
p...