Bb Serviss wrote: > I noticed in your form that you didnt specify any of the support > fields that paperclip uses -avatar_file_name for example - if these > aren't in the params hash they won't be saved in the db. In a recent > project I added all the fields to the form, but you could add them as > hidden. > > Paperclip doesn't store the image in the database so is an actual > image being stored in the location you setup?
I'm not sure what you mean by support fields...I looked around, but couldn't find much clarification. I know that Paperclip doesn't store the actual image in the database, that would be silly :) But it's not saving anything to the database in the avatar_file_name, _content_type, _file_size, or _updated_at fields, they're just NULL. Anyway, I followed Fernando Perez's advice about attr_accessible and it sort of worked, now I'm getting a different error: Avatar C:/DOCUME~1/mars/LOCALS~1/Temp/stream,5388,3.jpg is not recognized by the 'identify' command. I poked around and it seemed to be a problem with ImageMagick, which I didn't have installed. I installed it and checked that the PATH was right, but it keeps giving the the same error. Looking around, I tried the solution here: http://snipplr.com/view/29445/getting-paperclip-working-in-windows/ changing the ImageMagick location to what I had in the PATH, but it keeps giving me the same error. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

