Cucumber generator error in rails 3

I have my Gem file as mentioned in the github
gem ‘capybara’
gem ‘database_cleaner’
gem ‘cucumber-rails’
gem ‘cucumber’
gem ‘rspec-rails’
gem ‘spork’
gem 'launchy

but when i give rails generate cucumber:install, I am getting the error
saying ‘Could not find generator cucumber:install.’ Did I missed any
gems or do I need to do any configurations?

On Mon, 2010-09-27 at 07:11 +0200, Senthil kumar Loganathan wrote:

saying ‘Could not find generator cucumber:install.’ Did I missed any
gems or do I need to do any configurations?

Have you run ‘bundle install’ yet?

I also get this error, after I run “rails generate cucumber:install #
Rails 3”. The problem can not be solve after run bundle install

My target is that let Cucumber-Rails add a few files to your project.
I am following the guid of
https://github.com/aslakhellesoy/cucumber/wiki/Ruby-on-Rails

I run bundle install.
Out put as following:
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.3)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.3)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.7)
Using tzinfo (0.3.24)
Using actionpack (3.0.3)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.15)
Using actionmailer (3.0.3)
Using arel (2.0.7)
Using activerecord (3.0.3)
Using activeresource (3.0.3)
Using bundler (1.0.9)
Using mysql2 (0.2.6)
Using thor (0.14.6)
Using railties (3.0.3)
Using rails (3.0.3)
Your bundle is complete! Use bundle show [gemname] to see where a
bundled gem
is installed.

PS: OS is Window7, My project is Rails for jRuby project.

Senthil kumar Loganathan, 2010-09-27 08:11:

Did I missed any gems or do I need to do any configurations?

I had cucumber:install work fine with rails3. Did you remember to
bundle install? Also you did not seem to have Rails in your
Gemfile. Do you have it vendored or? If rails --version is
different from script/rails --version you might want to use the
later.

My Gemfile looks like this.

gem ‘rails’, ‘3.0.0’
gem ‘authlogic’, :git => ‘http://github.com/binarylogic/authlogic.git

group :production do
gem ‘mysql2’
end

group :test do
gem ‘rspec-rails’, ‘>= 2.0.0.beta.22’
gem ‘cucumber-rails’
gem ‘capybara’
end

group :development do
gem ‘sqlite3-ruby’, :require => ‘sqlite3’
gem ‘ruby-debug’
end

You can use bundle list and bundle show to see what you have and
where did they come from. script/rails g should list the generators
you have, including the two Cucumber generators.

Bundler basics, see http://gembundler.com/rationale.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs