Skip to content

Instantly share code, notes, and snippets.

@grk
Created May 28, 2011 15:55
Show Gist options
  • Save grk/996971 to your computer and use it in GitHub Desktop.
Save grk/996971 to your computer and use it in GitHub Desktop.
photos.each do |photo|
photo.position = params[:photo].index(photo.id.to_s)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment