Skip to content

Instantly share code, notes, and snippets.

@alibby
Created March 16, 2011 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alibby/871893 to your computer and use it in GitHub Desktop.
Save alibby/871893 to your computer and use it in GitHub Desktop.
Photo update
attributes = params[:photo]
photo = Array(current_user.photos(:per_page => 1, :page => 1, :id => params[:id])).first
photo.update :photo => attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment