Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ruby-1.9.2-p0 > c = Comment.first
- => #<Comment id: 1, text: "This is a Note!", ticket_id: 1, user_id: 1, created_at: "2010-12-09 19:19:36", updated_at: "2010-12-09 19:19:36">
- ruby-1.9.2-p0 > c.user.or
- c.user.or c.user.ord c.user.order c.user.order! c.user.order=
- c.user.order_clauses c.user.order_values c.user.order_values= c.user.orders c.user.orders=
- c.user.ordinalize c.user.orig_name c.user.orig_name= c.user.original_encoding c.user.original_exception
- c.user.original_filename c.user.original_filename= c.user.original_headers c.user.original_name c.user.original_platform
- c.user.original_platform=
- ruby-1.9.2-p0 > c.user.profile
- => #<Profile id: 5, user_id: 1, first_name: "Evan", last_name: "Sparkman", extension: "", created_at: "2010-11-30 21:59:05", updated_at: "2010-11-30 21:59:05">
- ruby-1.9.2-p0 > c.user.profile.name
- => "Evan Sparkman"
- ruby-1.9.2-p0 > comment = Comment.first
- => #<Comment id: 1, text: "This is a Note!", ticket_id: 1, user_id: 1, created_at: "2010-12-09 19:19:36", updated_at: "2010-12-09 19:19:36">
- ruby-1.9.2-p0 > comment.user.profile.name
- => "Evan Sparkman"
Add Comment
Please, Sign In to add comment