<% for section in @sections %>

<%= section_name(section) %>

<% @topics = section.topics.find_all_by_section_id(section.id) %> <% for topic in @topics %> <%= topic.name %>
<% end %> <% end %>