Skip to content

Instantly share code, notes, and snippets.

@mcansky
Created June 17, 2010 08:45
Show Gist options
  • Select an option

  • Save mcansky/441863 to your computer and use it in GitHub Desktop.

Select an option

Save mcansky/441863 to your computer and use it in GitHub Desktop.
#photos
- raws = @project.photos.size / 10
= raws.times.each
- n = 0 || n
- m = n + 9
.raw= partial 'projects/photo', :collection => @project.photos[n..m]
- n = m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment