How can I download a file located on a remote website (a download link is available or an address to an actual file on the remote server) to the server running the rails application? The file needs to be stored in a specific folder in the server file system.
Share
Let’s do it step by step:
Use the carrierwave
in your Gemfile:
gem 'carrierwave'in your view
<%= f.text_field :remote_image_url %>in your model
attr_accessible :remote_image_urlMore detail you can check Ryan’s railscast#253 CarrierWave File Uploads