Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Using username "matt".
- Authenticating with public key "rsa-key-20081020" from agent
- Last login: Fri Jul 10 08:44:00 2009 from c-75-69-191-17.
- Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
- The Regents of the University of California. All rights reserved.
- FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008
- ||| UNK
- [matt@unk ~]$ script/console
- -bash: script/console: No such file or directory
- [matt@unk ~]$ cd trunk
- [matt@unk ~/trunk]$ script/console
- Loading development environment (Rails 2.3.2)
- >> u = User.find_by_handle 'mmk'
- => #<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>
- >> u.profile.flights.count
- => 3
- >> flights[0].emissions_this_year
- NameError: undefined local variable or method `flights' for #<Object:0x80859a0>
- from (irb):3
- >> flights[0]
- NameError: undefined local variable or method `flights' for #<Object:0x80859a0>
- from (irb):4
- >> flights[0].emission_this_year
- NameError: undefined local variable or method `flights' for #<Object:0x80859a0>
- from (irb):5
- >>
Add Comment
Please, Sign In to add comment