Skip to content

Instantly share code, notes, and snippets.

@breinz
Created May 7, 2014 15:33
Show Gist options
  • Save breinz/cc578636472a0eceec92 to your computer and use it in GitHub Desktop.
Save breinz/cc578636472a0eceec92 to your computer and use it in GitHub Desktop.
-current_category = nil
[email protected] do |element|
-if element.category != current_category
%ul
%li=element.name
-current_category = element.category
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment