Hello everyone!

What would be the best way to view all attributes of an object? For
example, if a book has the attributes Title and Author, but also
belongs_to a Buyer (that have name and email), how could I easily view
the books title and author and the buyer's name and email?

If I use book.attributes I can only see it's own attributes, but not the
buyer's attributes.

Thanks in advance!

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to