From 8b82edef2fe6446371f83cc4651a1d92ca687844 Mon Sep 17 00:00:00 2001 From: Yaron Sadka Date: Mon, 19 Sep 2016 17:10:35 -0700 Subject: [PATCH] Controller to take user_params vs. params[:user] With the use of strong params in Rails, the documentation should be updated to display the proper intake --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index d8489b6..a89345c 100644 --- a/README.md +++ b/README.md @@ -60,8 +60,7 @@ implements a similar authentication strategy to the code below. ### Creating an account def create - @user = User.new(params[:user]) - @user.password = params[:password] + @user = User.new(user_params) @user.save! end