ActiveRecord::MissingAttributeError in MyController#my_action
.....
missing attribute: my_attribute

So I got this error message today after I added a column to my database.  WTF??  The column exists.. why can’t ActiveRecord see it?  oh.. maybe because I am stupid.  In my find command I was using the :select option

@widgets = Widget.find(:all, :select=>"id,name")

ActiveRecord can’t see any other attributes aside from what you specify in the :select option, so I just needed to add my attribute to the :select option

@widgets = Widget.find(:all, :select=>"id,name,my_attribute")