search for: authorize_resource

Displaying 1 result from an estimated 1 matches for "authorize_resource".

2012 Mar 30
1
cancan breaks scoped mass assignment
...ccessible attributes in order to avoid users to edit their roles or other sensitive information. From the administration I allow admins to edit those protected attributes by passing :without_protection => true on creation and update of new users. This works just fine, but adding cancan load_and_authorize_resource to my controller triggers a "Can''t mass-assign protected attributes: ...stuff..." . This happens also when using something like User.new(params[:user], :role => :admin) I really can''t figure out how to solve this, so any help would be very appreciated! Thanks in adv...