Re: [Rails] undefined method `updated_at' for #
On Wed, Nov 2, 2011 at 12:05, Rolando Sotomayor <lists@ruby-forum.com> wrote:
> undefined method `updated_at' for #<Classified:0x686c5e4>
If "updated_at" was a column you manually specified, I recommend you
rename it. That name is used automagically by Rails behind the
scenes, so using it manually is asking for trouble. That and
created_at are the timestamps added to any generated migration that
creates a new table.
Or are you actually trying to use the automagic one? The details were
"tl;dr", but if you really need, I can slog through them....
-Dave
--
LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)
--
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-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home