Skip to content

Instantly share code, notes, and snippets.

@vocino
Created March 19, 2010 04:42
Show Gist options
  • Save vocino/337243 to your computer and use it in GitHub Desktop.
Save vocino/337243 to your computer and use it in GitHub Desktop.
- @object.photos.each_with_index do |photo, i|
-if i == 0
*do stuff*
- elsif i == 1
*do more stuff*
- else
*do the rest of thes tuff*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment