Skip to content

Instantly share code, notes, and snippets.

@lalala
Created March 7, 2012 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lalala/1992590 to your computer and use it in GitHub Desktop.
Save lalala/1992590 to your computer and use it in GitHub Desktop.
.lists
- if @lists
%ul
- @lists.each do |list|
%li
= list.title
%ul
- list.list_items.each do |li|
%li
= li.content
- else
= link_to 'new list', new_list_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment