Rails 2.3 with bundler: I don't see generator tasks #600

petRUShka opened this Issue Apr 12, 2012 · 2 comments


None yet

2 participants


I'm using Rails 2.3.10 together with bundler 1.0.21 and cancan 1.6.7.

I have this as an output of script/generate:

Installed Generators
  Plugins (vendor/plugins): authenticated, paperclip, polymorphic_paperclip
  Rubygems: acts_as_taggable_on_migration, cucumber, culerity, email_spec, feature, integration_spec, paperclip, pickle, rspec, rspec_controller, rspec_model, rspec_scaffold
  Builtin: controller, helper, integration_test, mailer, metal, migration, model, observer, performance_test, plugin, resource, scaffold, session_migration

I added gem 'cancan' as last line in Gemfile. I don't know what to do to enable cancan generators.


CanCan doesn't come with a Rails 2.3 generator. All it does is create an ability.rb file in your models folder.

You can get exactly the same thing by creating the file and inserting:

class Ability
  include CanCan::Ability

  def initialize(user)

Or copy the exact generated code from here

@NickClark NickClark was assigned May 10, 2012

I will try to clarify this in the wiki and add a pull request for the readme (#616)

@NickClark NickClark closed this May 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment