Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. data = open("#{Rails.root}/public/result.png").read
  2. 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