thoughtbot/paperclip — Issue #717: MissingAttributeError in Rails 3.2
Author: jgadbois
Created: 2012-01-24 16:18:00+00:00
State: open

I am upgrading to Rails 3.2 and am getting a strange error. The error is as follows:

missing attribute: profile_image_updated_at

The database column is definitely there.

irb(main):012:0> u.profile_image_updated_at
=> Mon, 03 Oct 2011 14:12:51 UTC +00:00

If I add an attr_accessor for profile_image_updated_at then the page loads (but I'm assuming there would be upload problems since the date is nil in that case) .

Here is my has_attached_file code:
```
has_attached_file :profile_image,
:styles => { :profile=>"200x200>", :medium =>"100x100>", :thumb =>"80x80>" },
:storage => :s3,
:s3_credentials => "#{Rails.root}/config/s3.yml",
:path => ":attachment/:id/:style.:extension",
:bucket => S3_BUCKET,
:default_url=>'http://www.gravatar.com/avatar/00000000000000000000000000000000?d=mm',
:convert_options => {
:thumb => "-background white -compose Copy -gravity North -extent 80x80",
:medium => "-background white -compose Copy -gravity North -extent 100x100",
:profile => "-background white -compose Copy -gravity North -extent 200x200",
}
```