Hi All,

I am trying to list out product by using below syntax; however, I was
only able to list out the table column names not the actual fields.
Can you kindly let me know what I did wrong? Looks like that hobo
does
not like the tag "<% for product in @products %>".


    <h2>Listing Products</h2>
    <table cellpadding="5" cellspacing="1">
    <tr>
    <% for column in Product.content_columns %>
    <th><%= column.human_name %></th>
    <% end %>
    </tr>

<!-- below codes does not work -->

    <% for product in @products %>
    <tr>
    <td><%=h product.product_name %></td>
    <td><%=h product.engine_version %></td>
    <td><%=h product.platform %></td>
    <td><%=h product.feature %></td>
    <td><%=h product.product_info %></td>
    <td><%=h product.created_at %></td>
    <td><%=h product.updated_at %></td>
    <td><%= link_to 'Show', product %></td>
    </tr>
    <% end %>

    </table>


Thank you so much in advance...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to