Help with controller and view

How about something like this:

<h2>Ingredients</h2> <ul> <%- for ingredient in @ingredients -%>   <li><%= ingredient.name %>     <ul>     <%- for supplier in ingredient.suppliers -%>       <li><%= supplier.name %></li>     <%- end -%>     </ul>   </li> <%- end -%> </ul>

Of course you will probably want to dry this up a bit using partials and include suppliers in your find statement so you are not hitting the database for each ingredient.

HTH, Nicholas