I want to upload paperclip files in console mode. In rails 3, I tried this Paperclip: How to store a picture in a Rails console? - Stack Overflow and it worked.
YourPaperclippedModelHere.new(:your_paperclip_field => File.new(path,
“r”))
However, in Rails4, when I try this, I get
ActiveRecord::UnknownAttributeError: unknown attribute: your_paperclip_field
I am using the master branch of paperclip.