Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Ruby 1.9 compat: rails app generator should require activesupport/secure_random

#1326

"rails" command fails with the following error message when executed by Ruby 1.9.


 $RAILS_DIR/activesupport/lib/active_support/dependencies.rb:428:in `rescue in load_missing_constant'
 $RAILS_DIR/activesupport/lib/active_support/dependencies.rb:424:in `load_missing_constant'
 $RAILS_DIR/activesupport/lib/active_support/dependencies.rb:77:in `const_missing_with_dependencies'
 $RAILS_DIR/railties/lib/rails_generator/generators/applications/app/app_generator.rb:38:in `manifest'
 $RAILS_DIR/railties/lib/rails_generator/commands.rb:42:in `invoke!'
 $RAILS_DIR/railties/lib/rails_generator/scripts.rb:31:in `run'
 $RAILS_DIR/railties/bin/rails:17:in `<main>'

This patch fixes the problem by requiring active_support/secure_random.

Reported by Akira Matsuda · November 4th, 2008 @ 10:49 AM

State: committed
Milestone: none
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none