Guest User

Untitled

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