I would like to have a copy of an image file locally given an image url. like this def loadimage=(image_url) ............how to fetch image from an url.......... File.open("#{RAILS_ROOT}/public/images/#{file.original_filename}", "w+") do |f| f.write file.read end end Anyone could refer any existing helper with the function I need? Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---