Skip to content

Instantly share code, notes, and snippets.

@thiagofm
Created June 25, 2010 14:04
Show Gist options
  • Save thiagofm/452886 to your computer and use it in GitHub Desktop.
Save thiagofm/452886 to your computer and use it in GitHub Desktop.
I'm in script/console and i do the following:
>> @message.thread_id = 63
=> 63
>> @topic_update = Topic.find(:all,:conditions=>{:id=> @message.thread_id})
=> [#<Topic id: 63, title: "fgfgf", created_at: "2010-06-25 12:27:20", updated_at: "2010-06-25 12:27:20">]
>> @topic_update.updated_at=Time.now
NoMethodError: undefined method `updated_at=' for #<Array:0x7f5209fd4ed8>
from (irb):11
Shoudl'nt @topic_update.updated_at be ""2010-06-25 12:27:20" and get updated? (then i'm going to save it later)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment