Skip to content

Instantly share code, notes, and snippets.

@michaelparenteau
Created November 10, 2010 17:24
Show Gist options
  • Save michaelparenteau/671168 to your computer and use it in GitHub Desktop.
Save michaelparenteau/671168 to your computer and use it in GitHub Desktop.
Just some example erb to haml
%h3 Videos
%ul.sortable
- @videos.each do |video|
%li{ :id => "video_#{video.id}" }= video.title
%h3= "Videos"
%ul(class="sortable")
- @videos.each do |video|
%li{ :id => "video_#{video.id}" }= video.title
<h3>Items</h3>
<ul class='sortable'>
<% for obj in @someObj %>
<li id="video_<%= obj.id %>"><%= obj.value %></li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment