Created
March 5, 2012 23:16
-
-
Save danielcooper/1981912 to your computer and use it in GitHub Desktop.
Mass Assignment
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
class User < ActiveRecord::Base | |
end | |
class UsersController < ApplicationController | |
def update | |
User.find(params[:id]).update_attributes(params[:user]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment