Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = open("#{Rails.root}/public/result.png").read
- send_data data, :disposition => 'attachment', :filename=>"map.dxf",type: "application/CAD",content_type: 'application/CAD',mime_type: 'application/CAD'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement