Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created July 21, 2012 04:57
Show Gist options
  • Save chintanparikh/3154634 to your computer and use it in GitHub Desktop.
Save chintanparikh/3154634 to your computer and use it in GitHub Desktop.
%h2 Categories
- i = 0
.span9.categories
- @categories.each do |category|
= ".row-fluid" if i % 3 == 0
.span4
%h2= category.name
.well
%ul
- category.sections.each do |section|
%li= link_to section.name, [category, section]
- i = i + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment