Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby-1.8.6-p383 > Team.all.each{|t| t.league = League.first; t.save}
- NoMethodError: undefined method `league=' for #<Team:0x102cbb210>
- from /Users/dan/.rvm/gems/ruby/1.8.6/gems/activerecord-2.1.1/lib/active_record/attribute_methods.rb:251:in `method_missing'
- from (irb):1
- from (irb):1:in `each'
- from (irb):1
- ruby-1.8.6-p383 >
Add Comment
Please, Sign In to add comment