Hi all... I need help with a little ruby code. I am trying to output every attribute of an active record object something like: <% for product in @products %> <% for each product.attributes |attribute| %> <p> <%= product.attribute %> </p> <% end %> <% end %> this code obviously doesn''t work...any help would be much appreciated. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---