This project is archived and is in readonly mode.
rails runner uninitialized constant Object
-
trevor
% rails -v Rails 3.0.0.beta
-
trevor
- Tag set to rails3 runner
-
moresheth
It looks like someone has a fix for this:
http://github.com/rails/rails/commit/39ebd6eb2b6c90756514798450eb15...Since trying to re-install the Rails 3 beta didn't work, and I'm not sure if there's an easy way to patch it from that commit, I just made the changes myself. The location of the files depends on where your ruby is installed, so on one machine, these were the files that I changed:
/var/lib/gems/1.8/gems/railties-3.0.0.beta/lib/rails/commands.rb /var/lib/gems/1.8/gems/railties-3.0.0.beta/lib/rails/commands/runner.rbOn another, it was these:
/usr/lib/ruby/gems/1.8/gems/railties-3.0.0.beta/lib/rails/commands.rb /usr/lib/ruby/gems/1.8/gems/railties-3.0.0.beta/lib/rails/commands/runner.rbYou're just moving the "require ENV_PATH" line.
-
José Valim
- Milestone cleared.
- State changed from new to resolved