# Help with partials - newbie

**URL:** <https://www.ruby-forum.com/t/help-with-partials-newbie/188555>\
**Category:** Rails\
**Created:** [May 13, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/help-with-partials-newbie/188555 "2010-05-13T21:04:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@sso](https://www.ruby-forum.com/u/sso)\
**Post date:** [May 13, 2010, 9:04pm UTC](https://www.ruby-forum.com/t/help-with-partials-newbie/188555/1 "2010-05-13T21:04:04Z")

</div>

The way this works I’m getting a table for each subsection. All I  
really want is a

 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

# Listing subsections
\<%= render :partial =\> 'subsection', :collection =\> @subsections %\>  

#\_subsection.html.erb

\<% div\_for subsection do %\>

\<% end %\>

| \<%=h subsection.section\_id %\> |

---

<div class="post-metadata">

**Author:** ![sso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@sso](https://www.ruby-forum.com/u/sso)\
**Post date:** [May 13, 2010, 9:57pm UTC](https://www.ruby-forum.com/t/help-with-partials-newbie/188555/2 "2010-05-13T21:57:20Z")

</div>

Disregard this post. Delete if you have the power.  
Thanks
