# Re: script/generate cucumber fails in Rails 2.3.5 and Ruby 1.9.1

**URL:** <https://www.ruby-forum.com/t/re-script-generate-cucumber-fails-in-rails-2-3-5-and-ruby-1-9-1/180894>\
**Category:** Rails\
**Created:** [December 31, 2009, 2:08am UTC](https://www.ruby-forum.com/t/re-script-generate-cucumber-fails-in-rails-2-3-5-and-ruby-1-9-1/180894 "2009-12-31T02:08:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christoph\_j](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/76d3ee/32.png) [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Post date:** [December 31, 2009, 2:08am UTC](https://www.ruby-forum.com/t/re-script-generate-cucumber-fails-in-rails-2-3-5-and-ruby-1-9-1/180894/1 "2009-12-31T02:08:08Z")

</div>

Seems to me that we found the error. You cucumer.rb is missing. Send you  
mine I it help somehow:

# Edit at your own peril - it’s recommended to regenerate this file

# in the future when you upgrade to a newer version of Cucumber.

# IMPORTANT: Setting config.cache\_classes to false is known to

# break Cucumber’s use\_transactional\_fixtures method.

# For more information see

[https://rspec.lighthouseapp.com/projects/16211/tickets/165](https://rspec.lighthouseapp.com/projects/16211/tickets/165)  
config.cache\_classes = true

# Log error messages when you accidentally call methods on nil.

config.whiny\_nils = true

# Show full error reports and disable caching

config.action\_controller.consider\_all\_requests\_local = true  
config.action\_controller.perform\_caching = false

# Disable request forgery protection in test environment

config.action\_controller.allow\_forgery\_protection = false

# Tell Action Mailer not to deliver emails to the real world.

# The :test delivery method accumulates sent emails in the

# ActionMailer::Base.deliveries array.

config.action\_mailer.delivery\_method = :test

config.gem ‘cucumber-rails’, :lib =\> false, :version =\> ‘\>=0.2.2’  
unless  
File.directory?(File.join(Rails.root, ‘vendor/plugins/cucumber-rails’))  
config.gem ‘database\_cleaner’, :lib =\> false, :version =\> ‘\>=0.2.3’  
unless  
File.directory?(File.join(Rails.root,  
‘vendor/plugins/database\_cleaner’))  
config.gem ‘webrat’, :lib =\> false, :version =\> ‘\>=0.6.0’  
unless  
File.directory?(File.join(Rails.root, ‘vendor/plugins/webrat’))  
config.gem ‘rspec’, :lib =\> false, :version =\> ‘\>=1.2.9’  
unless  
File.directory?(File.join(Rails.root, ‘vendor/plugins/rspec’))  
config.gem ‘rspec-rails’, :lib =\> false, :version =\> ‘\>=1.2.9’  
unless  
File.directory?(File.join(Rails.root, ‘vendor/plugins/rspec-rails’))

Cheers,  
Chris

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![christoph\_j](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/76d3ee/32.png) [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Post date:** [December 31, 2009, 2:49am UTC](https://www.ruby-forum.com/t/re-script-generate-cucumber-fails-in-rails-2-3-5-and-ruby-1-9-1/180894/2 "2009-12-31T02:49:41Z")

</div>

Guys,

Still nothing ☹

Same error after creating the cucumber.rb file in the environments.

script/generate cucumber still not working.

Thx Chris!

Any one else?

[]'s  
RD

On Wed, Dec 30, 2009 at 11:06 PM, Christoph J. \<  
removed\_email\_address@domain.invalid\> wrote:

> [https://rspec.lighthouseapp.com/projects/16211/tickets/165](https://rspec.lighthouseapp.com/projects/16211/tickets/165)  
> config.action\_controller.allow\_forgery\_protection = false  
> config.gem ‘webrat’, :lib =\> false, :version =\> ‘\>=0.6.0’ unless
> 
> –  
> You received this message because you are subscribed to the Google G.  
> “Ruby on Rails: Talk” group.  
> To post to this group, send email to removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to  
> removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
