Help iterating over attributes of an AR object

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.