Created
September 6, 2011 19:19
-
-
Save christopherhein/1198682 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
ruby-1.9.2-p290 :001 > Post.new | |
NoMethodError: You have a nil object when you didn't expect it! | |
You might have expected an instance of Array. | |
The error occurred while evaluating nil.[] | |
from /Users/ChristopherHein/.rvm/gems/ruby-1.9.2-p290@chrishein/gems/activerecord-3.1.0/lib/active_record/base.rb:717:in `column_defaults' | |
from /Users/ChristopherHein/.rvm/gems/ruby-1.9.2-p290@chrishein/gems/activerecord-3.1.0/lib/active_record/persistence.rb:327:in `attributes_from_column_definition' | |
from /Users/ChristopherHein/.rvm/gems/ruby-1.9.2-p290@chrishein/gems/activerecord-3.1.0/lib/active_record/locking/optimistic.rb:69:in `attributes_from_column_definition' | |
from /Users/ChristopherHein/.rvm/gems/ruby-1.9.2-p290@chrishein/gems/activerecord-3.1.0/lib/active_record/base.rb:1544:in `initialize' | |
from (irb):1:in `new' | |
from (irb):1 | |
from ./script/console:40:in `block (2 levels) in start' | |
from ./script/console:12:in `block in em' | |
from /Users/ChristopherHein/.rvm/gems/ruby-1.9.2-p290@chrishein/gems/em-synchrony-1.0.0/lib/em-synchrony.rb:25:in `call' | |
from /Users/ChristopherHein/.rvm/gems/ruby-1.9.2-p290@chrishein/gems/em-synchrony-1.0.0/lib/em-synchrony.rb:25:in `block (2 levels) in synchrony' | |
ruby-1.9.2-p290 :002 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment