Read more

Paperclip: undefined method `to_file' for #<Paperclip::Attachment:0000> (NoMethodError)

Thomas Eisenbarth
September 19, 2012Software engineer at makandra GmbH

to_file has been removed Show archive.org snapshot in Paperclip 3.0.1.

Illustration online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
Read more Show archive.org snapshot

Instead of using File to access Paperclip storage objects (like this: File.read(file.to_file.path)) you can use

Paperclip.io_adapters.for(file).read
Posted by Thomas Eisenbarth to makandra dev (2012-09-19 16:50)