Guest User

Untitled

a guest
Aug 2nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. [jmichael@mail impress]$ script/console
  2. Loading development environment (Rails 2.3.11)
  3. ree-1.8.7-2011.03 :001 > c = Carrier.last
  4. => #<Carrier id: 35, name: "Zillion Wireless", ...>
  5. ree-1.8.7-2011.03 :002 > c.advocates
  6. => [#<User id: 79, email: "Paul.White@floog.flo", ...>]
  7. ree-1.8.7-2011.03 :003 > u = User.first
  8. => #<User id: 1, email: "chewmanfoo@gloog.com", ...>
  9. ree-1.8.7-2011.03 :004 > c.advocates << u
  10. => [#<User id: 79, email: "Paul.White@floog.flo", ...>, #<User id: 1, email: "chewmanfoo@gloog.com", ...>]
  11. ree-1.8.7-2011.03 :005 > c.advocates
  12. => [#<User id: 79, email: "Paul.White@flog.flo", ...>, #<User id: 1, email: "chewmanfoo@gloog.com", ...>]
  13. ree-1.8.7-2011.03 :006 > u = User.find(1)
  14. => #<User id: 1, email: "chewmanfoo@gmail.com", encrypted_password: ...>
  15. ree-1.8.7-2011.03 :007 > u.carriers
  16. NameError: uninitialized constant User::Carriers
  17. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/dependencies.rb:131:in `const_missing'
  18. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/base.rb:1:in `compute_type'
  19. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activesupport-2.3.11/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
  20. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/base.rb:2234:in `compute_type'
  21. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/reflection.rb:156:in `send'
  22. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/reflection.rb:156:in `klass'
  23. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/associations/has_many_through_association.rb:78:in `find_target'
  24. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/associations/association_collection.rb:365:in `load_target'
  25. from /home/jmichael/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-2.3.11/lib/active_record/associations/association_proxy.rb:140:in `inspect'
  26. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:310:in `output_value'
  27. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:159:in `eval_input'
  28. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:271:in `signal_status'
  29. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:155:in `eval_input'
  30. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:154:in `eval_input'
  31. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:71:in `start'
  32. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:70:in `catch'
  33. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/irb.rb:70:in `start'
  34. from /home/jmichael/.rvm/rubies/ree-1.8.7-2011.03/bin/irb:17
Add Comment
Please, Sign In to add comment