Which is the proper way to upload an image from an external url with Paperclip on rails 4?
问题 I want to download to a MOdel the image from an url: I already read Save image from URL by paperclip but first I run into this error: Paperclip::Error: Page model missing required attr_accessor for 'picture_file_name' afterwards , I added the attr_accessible parameter and run into this other error: RuntimeError: `attr_accessible` is extracted out of Rails into a gem I now added also the protected_attributes to no success.. This is how my model is reading right now: require 'open-uri' class