Skip to content

Instantly share code, notes, and snippets.

@jgagner
Created August 11, 2010 21:48
Show Gist options
  • Save jgagner/519836 to your computer and use it in GitHub Desktop.
Save jgagner/519836 to your computer and use it in GitHub Desktop.
There are four ways to do something
<ul>
<% (1..4).zip([:a,:b,:c,:d]).zip(["face1","face2","face3","face4"]).transpose[0].transpose[0].each do |x| %>
<li><%= x %> </li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment