thoughtbot/paperclip — Issue #653: on rails 2.3.14 paperclip no longer saving attachments
Author: chewmanfoo
Created: 2011-11-23 15:19:51+00:00
State: open

I have the following model code:

```ruby
# Paperclip
# destroy: attachment should destroy when carrier is destroyed
has_attached_file :logo, :styles => { :thumb=> "100x100>", :small => "150x150>", :med => "200x130>" }
```

the form has:

```
<% form_for @carrier, :html => { :multipart => true } do |f| %>
...

<%= f.label :logo %>

<%= f.file_field :logo %>

```

and I can see this in the production log:

Processing CarriersController#create (for 172.25.50.65 at 2011-11-23 09:11:58) [POST]
Parameters: {"attachment"=>{"file_0"=>#}, "authenticity_token"=>"hIYb0nJOLhF8l3lXPh4LOKhTuNuZuTdt/wwRo+lygwg=", "carrier"=>{"release_to_delivery_days"=>"", "city"=>"Lagos, Nigeria", "address1"=>"2, Ajose Adeogun Street, Victoria Island", "name"=>"Visafone", "cc_admin_password"=>"", "address2"=>"", "postal_code"=>"00000", "complete_configuration_mailto"=>"care@visafone.com.ng", "url"=>"http://www.visafone.com.ng", "country_id"=>"13", "control_center_url"=>"", "cc_admin_login"=>"", "network_number"=>"", "feature_ids"=>["11", "12", "13", "23"], "phone"=>"07041 444 444", "alias"=>"visafone", "orion_nickname"=>"vf", "use_network_number"=>"0", "state_id"=>"53", "project_manager_id"=>""}}

so, there's no mention of the logo file in the POST except the 'attachment".

And in the sql inserts, I see no reference to the logo attributes ('logo_content_type`, `logo_file_size', 'logo_file_name')

So, how can I see what paperclip is doing to the "attachment" to turn it into the respective sql inserts and the resizing of the attachment and placing it in the system/ directories?