1

I've been using paperclip and everything was fine, till my server installed Passenger and I cant make it work. I have the most simple example of :image like this:

has_attached_file :image , :url => "/:class/:attachment/:id/:style_:basename.:extension" , :default_url => "/:class/:attachment/missing.png", :styles=>{:lista=> "38x38#", :comunidad  => "50x50#", :destacado=>"100x100#",:perfil  => "150x150#"}

And the 4 fields on the database, and everything was working just fine.. Now in the log I have [Paperclip] Saving Attachments...

But they are not being saved! The directory permissions are ok.. but nothing happens. Any clue?

Thanks!

fl00r
  • 82,987
  • 33
  • 217
  • 237

2 Answers2

3

Have you placed multipart=>true in your form ? That solved my issue, which was similar.

form_for(@yourmodel, :html => {:multipart => true}) do |f| 
Roger Heykoop
  • 63
  • 1
  • 7
2

Have you added:

attr_accessible :image  

in your model? I forgot to add it to my model and the file would upload to the tmp dir, but would not store against the model when saving. So frustrating!

James P McGrath
  • 1,856
  • 1
  • 20
  • 35