Created
June 25, 2010 14:04
-
-
Save thiagofm/452886 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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