-
Notifications
You must be signed in to change notification settings - Fork 784
Bug: load_and_authorize_resource #1008
Comments
I've following installed MODEL ABILITY def initialize(user)
end MODEL ROLE Validate attributesvalidates :name, presence: true CONTROLLER load_and_authorize_resourceExpose instance variables to view. Read more: https://github.com/voxdolo/decent_exposure/wikiexpose(:role, attributes: :role_params) def create
end private def role_params FULL TRACE Rails.root: /Users/Dan/projects/fitbird Application Trace | Framework Trace | Full Trace Parameters: {"utf8"=>"✓", |
@UrbanViking take a look at this issue: #835 The @AntonTrapp solution worked for me. |
Thank you, but I used authorize on actions. Once the bug has been fixed, Rgds, Dan On Thu, Jun 19, 2014 at 4:33 PM, felipelc [email protected] wrote:
|
Thanks for your submission! The ryanb/cancan repository has been inactive since Sep 06, 2013. CanCan has many open issues, including missing support for Rails 4. To keep CanCan alive, an active fork exists at cancancommunity/cancancan. The new gem is cancancan. More info is available at #994. If your pull request or issue is still applicable, it would be really appreciated if you resubmit it to CanCanCan. We hope to see you on the other side! |
Did something changed with method "load_and_authorize_resource" lately?
I'm getting "ActiveModel::ForbiddenAttributesError" when using load_and_authorize_resource, however authorize! :action, object works just fine and so does the code without cancan.
The text was updated successfully, but these errors were encountered: