From 3e033cc1025fa327ef70a831ec8f4768072fa54d Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 29 Dec 2014 14:52:06 +0100 Subject: [PATCH] permit more params! --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 3cb5eee1..ffad7d8f 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -15,7 +15,7 @@ class UserController < ApplicationController def update user_attributes = params.require(:user).permit(:display_name, :profile_picture, :motivation_header, :website, - :location, :bio) + :location, :bio, :crop_x, :crop_y, :crop_w, :crop_h) unless current_user.update_attributes(user_attributes) flash[:error] = 'An error occurred. ;_;' end