Guest User

Untitled

a guest
May 25th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. >> @customer = Customer.find(101)
  2. => #<Customer id: 101, firstname: "richard", lastname: "genthner", address1: "25 cosy harbor", address2: "", city: "southport", zipcode: "04576", state: "maine", email: "richard@guthnur.net", phone1: "207-633-7092", phone2: "", created_at: "2008-10-23 04:23:29", updated_at: "2008-10-23 04:23:29">
  3. >> @customer.po
  4. NoMethodError: undefined method `po' for #<Customer:0x20e3bb4>
  5. from /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/attribute_methods.rb:256:in `method_missing'
  6. from /Users/richard/Desktop/woody_v2/vendor/plugins/attribute_fu/lib/attribute_fu/associations.rb:28:in `method_missing'
  7. from (irb):5
  8. >> @customer.pos
  9. NoMethodError: undefined method `pos' for #<Customer:0x20e3bb4>
  10. from /Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/attribute_methods.rb:256:in `method_missing'
  11. from /Users/richard/Desktop/woody_v2/vendor/plugins/attribute_fu/lib/attribute_fu/associations.rb:28:in `method_missing'
  12. from (irb):6
  13. >> @customer.tickets
  14. => []
  15. >>
Add Comment
Please, Sign In to add comment