Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created June 9, 2012 16:25
Show Gist options
  • Save chintanparikh/2901660 to your computer and use it in GitHub Desktop.
Save chintanparikh/2901660 to your computer and use it in GitHub Desktop.
%h2 Categories
- @categories.each do |category|
%ul
%li
%h3= link_to category.name, [category]
%ul
- Category.find(category.id).sections.each do |section|
%li= link_to section.name, [category, section]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment