Help on using paperclip plugin

Posted by Brian Roisentul on Stack Overflow See other posts from Stack Overflow or by Brian Roisentul
Published on 2010-06-08T20:43:56Z Indexed on 2010/06/09 1:32 UTC
Read the original article Hit count: 459

Filed under:
|

I've just installed this plugin, created the migrations, added everything I needed to make it work(I didn't install ImageMagick yet).

The problem is when I get the upload control parameter to save it in my controller, I get something like this:

#<File:C:\Users\Brian\AppData\Local\Temp\RackMultipart.2560.6677>

instead of a simple string, like

C:\Users\Brian\AppData\Local\Temp\RackMultipart.2560.6677

And if I try to read it I get the following exception:

TypeError backtrace must be Array of String

What am I doing wrong? How do I read it or simply get rid of the # and <> symbols?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about paperclip