Skip to content

Instantly share code, notes, and snippets.

@iHiD
Created June 10, 2012 13:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save iHiD/2905498 to your computer and use it in GitHub Desktop.
Security Article Part 2 - 2
class UsersController < ApplicationController
#...
def update
@user = User.find(params[:id])
@user.update_attributes(params[:user])
#...
end
#...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment