I didn't see the avatar_file_size, avatar_content_type, and avatar_created_at fields in your form. I don't know if these are required though as they should be created when you submit a file_field.
You can store the images in the database if you want to, but most would recommend you don't. Have you looked in the location to see if an image was being saved? Have you asked on the paperclip Google group? On Aug 8, 7:17 pm, "A. Leek" <li...@ruby-forum.com> wrote: > 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 viahttp://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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.