Skip to content

Instantly share code, notes, and snippets.

@nfelsen
Created August 13, 2008 04:30
Show Gist options
  • Save nfelsen/5197 to your computer and use it in GitHub Desktop.
Save nfelsen/5197 to your computer and use it in GitHub Desktop.
<% for section in @sections %>
<h2> <%= section_name(section) %> </h2>
<% @topics = section.topics.find_all_by_section_id(section.id) %>
<% for topic in @topics %>
<%= topic.name %> <br>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment