The way this works I'm getting a table for each subsection. All I really want is a <tr> for each subsection. It makes sense why this is happening I'm just not sure of the most appropriate way to work around this. Any suggestions? (I could just leave them in divs format them with css, just looking at what else I can do)
Thanks!
#subsections/index.html.erb <h1>Listing subsections</h1> <%= render :partial => 'subsection', :collection => @subsections %> <br />
#_subsection.html.erb <table> <% div_for subsection do %> <tr> <td><%=h subsection.section_id %></td> </tr>
<% end %> </table>