Hi! I don't know if this will be exactly what are you looking for, but I heard about this gem:
https://github.com/ctran/annotate_models Best Regards, Everaldo On Thu, Sep 8, 2011 at 1:04 AM, Miguel A. <[email protected]> wrote: > 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. > > -- 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.

