RailsCasts Pro episodes are now free!

Learn more or hide this

Alex's Profile

GitHub User: atabone

Comments by Alex

Avatar

Hi,

I am using cancan 1.6.7 on a Rails 2.2.3 app.

My ability class is as follows:

ruby
class Ability
  include CanCan::Ability
  
  def initialize(user)
    can :read, :all
  end
end

When loading a page, I am getting the following error:
NameError in AController#edit
uninitialized constant CanCan::Ability::I18n

Any one knows why?

Thanks.