I am trying to a render a partial with a collection, and have been able to do it, but, it is looping through of the partial than I would like. Here is my partial code:
<table class="tabs">
<tr>
<% if tabs[:label] == selected %>
<%= tag("td", :id => "selected") %>
<% else %>
<%= tag("td") %>
<% end %>
<span class="before"></span>
<span class="middle">
<%= link_to tabs[:label], tabs[:url] %>
</span>
<span class="after"></span>
</td>
</tr>
</table>
<hr />
And I want to create a line of tabs with that (iterate only through the td's). Instead, it's going through the entire thing, and creating a new table for each member of the collection. Is it possible, without removing the table, tr, and hr tags from the partial,to do this?
TIA!