Hi!
I don''t know if this will be exactly what are you looking for, but I
heard
about this gem:
github.com/ctran/annotate_models
Best Regards,
Everaldo
On Thu, Sep 8, 2011 at 1:04 AM, Miguel A.
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
groups.google.com/group/rubyonrails-talk?hl=en.