permit more params!

This commit is contained in:
nilsding 2014-12-29 14:52:06 +01:00
parent 7aa954e212
commit 3e033cc102
1 changed files with 1 additions and 1 deletions

View File

@ -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