Guest User

Untitled

a guest
Jul 6th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. Using username "matt".
  2. Authenticating with public key "rsa-key-20081020" from agent
  3. Last login: Fri Jul 10 08:44:00 2009 from c-75-69-191-17.
  4. Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
  5. The Regents of the University of California. All rights reserved.
  6.  
  7. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008
  8.  
  9. ||| UNK
  10.  
  11. [matt@unk ~]$ script/console
  12. -bash: script/console: No such file or directory
  13. [matt@unk ~]$ cd trunk
  14. [matt@unk ~/trunk]$ script/console
  15. Loading development environment (Rails 2.3.2)
  16. >> u = User.find_by_handle 'mmk'
  17. => #<ActivatedUser id: 2096, handle: "mmk", password: "f25dbdd3b4e25c4a694af09b7f3800e578966e3b", email: "matt_kling@hotmail.com", created_at: "2009-07-08 19:07:30", role: "member", first_name: "", last_name: "", bio: nil, wants_newsletter: true, wants_email_notification: true, wants_messages_from_our_allies: true, wants_daily_progress_updates: true, mailing_address: nil, city: nil, state: nil, telephone: nil, wants_bank_marketing: true, landed_from: nil, zip_code: "", type: "ActivatedUser", private_key: "3d6ca9eb770da09df667d4eeed7e8b7098c7dfe1", company: nil, public_key: "NIC-R7Q", birthday: nil, application_approved_at: nil, application_declined_at: nil, application_waiting_at: nil, application_unknown_at: nil, conservation_privacy: nil, emission_privacy: nil, group_privacy: nil, offset_privacy: nil, pii_privacy: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, twitter_username: nil, location: "", gender: nil, email_verified: nil, wants_to_be_followed: nil, wants_to_show_activity_feed: nil, activity_privacy: nil, latitude: nil, longitude: nil>
  18. >> u.profile.flights.count
  19. => 3
  20. >> flights[0].emissions_this_year
  21. NameError: undefined local variable or method `flights' for #<Object:0x80859a0>
  22. from (irb):3
  23. >> flights[0]
  24. NameError: undefined local variable or method `flights' for #<Object:0x80859a0>
  25. from (irb):4
  26. >> flights[0].emission_this_year
  27. NameError: undefined local variable or method `flights' for #<Object:0x80859a0>
  28. from (irb):5
  29. >>
Add Comment
Please, Sign In to add comment