Hi all…
I need help with a little ruby code. I am trying to output every
attribute of an actice record object something like:
<% for product in @products %>
<% for each product.attribute |attribute| %>
Hi all…
I need help with a little ruby code. I am trying to output every
attribute of an actice record object something like:
<% for product in @products %>
<% for each product.attribute |attribute| %>
product.attributes return a Hash object, so you want:
Thanks alot mate…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs