ryanb/cancan — Issue #525: activescaffold cancan production problem
Author: barriault
Created: 2011-12-04 15:50:04+00:00
State: open

I'm getting this weird error in production and not in development:

CanCan::AuthorizationNotPerformed in ContactsController#index

This action failed the check_authorization because it does not authorize_resource. Add skip_authorization_check to bypass this check.

I have plenty of other models/controllers authorized by Cancan that
work fine. The only one I seem to have any problems with is this one.

I've even reduced my ability.rb file to this:

class Ability
include CanCan::Ability

def initialize(user)
can :manage, :all
end
end

Any ideas on what might be causing this or where I should look?