Skip to content

Instantly share code, notes, and snippets.

@seyhunak
Created February 6, 2014 15:43
Show Gist options
  • Select an option

  • Save seyhunak/8846685 to your computer and use it in GitHub Desktop.

Select an option

Save seyhunak/8846685 to your computer and use it in GitHub Desktop.
Erb Tricks
1. Use on loop each_with_index
<% if index % 4 == 0 %>
# do stuff
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment