Created
June 27, 2012 20:20
-
-
Save rafaelcgo/3006617 to your computer and use it in GitHub Desktop.
Create Multiple Photos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new_photos.each do |p| | |
Photo.create(:filename => p, :version => params[:version].to_i+1, :client_id => params[:client_id].to_i) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment