Guest User

Untitled

a guest
Jul 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. ruby-1.9.2-p0 > c = Comment.first
  2. => #<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">
  3. ruby-1.9.2-p0 > c.user.or
  4. c.user.or c.user.ord c.user.order c.user.order! c.user.order=
  5. c.user.order_clauses c.user.order_values c.user.order_values= c.user.orders c.user.orders=
  6. c.user.ordinalize c.user.orig_name c.user.orig_name= c.user.original_encoding c.user.original_exception
  7. c.user.original_filename c.user.original_filename= c.user.original_headers c.user.original_name c.user.original_platform
  8. c.user.original_platform=
  9. ruby-1.9.2-p0 > c.user.profile
  10. => #<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">
  11. ruby-1.9.2-p0 > c.user.profile.name
  12. => "Evan Sparkman"
  13. ruby-1.9.2-p0 > comment = Comment.first
  14. => #<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">
  15. ruby-1.9.2-p0 > comment.user.profile.name
  16. => "Evan Sparkman"
Add Comment
Please, Sign In to add comment