Created
October 25, 2012 21:55
-
-
Save arthurnn/3955687 to your computer and use it in GitHub Desktop.
This file contains 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
1.9.3p194 :004 > UserSettings.first.updated_at | |
NoMethodError: undefined method `updated_at' for #<UserSettings:0x007fb2f085f2a0> | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/mongoid-2.4.12/lib/mongoid/attributes.rb:166:in `method_missing' | |
from (irb):4 | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.6/lib/rails/commands/console.rb:45:in `start' | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.6/lib/rails/commands/console.rb:8:in `start' | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.6/lib/rails/commands.rb:40:in `<top (required)>' | |
from script/rails:6:in `require' | |
from script/rails:6:in `<main>' | |
1.9.3p194 :005 > UserSettings.first.cache_key | |
NameError: undefined local variable or method `updated_at' for #<UserSettings:0x007fb2f0b73900> | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/mongoid-2.4.12/lib/mongoid/attributes.rb:166:in `method_missing' | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/mongoid-2.4.12/lib/mongoid/document.rb:231:in `cache_key' | |
from (irb):5 | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.6/lib/rails/commands/console.rb:45:in `start' | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.6/lib/rails/commands/console.rb:8:in `start' | |
from /Users/arthurnn/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.6/lib/rails/commands.rb:40:in `<top (required)>' | |
from script/rails:6:in `require' | |
from script/rails:6:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment