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.

3.0.0b2 rails generator - no such file: singleton_class

#4321
> rails --help

or

> rails whatever
  _GEMS_/gems/railties-3.0.0.beta2/lib/rails/generators.rb:6:in `require': no such file to load -- active_support/core_ext/object/singleton_class (LoadError)
from _GEMS_/gems/railties-3.0.0.beta2/lib/rails/generators.rb:6:in `<top (required)>'
from _GEMS_/gems/railties-3.0.0.beta2/lib/rails/commands/application.rb:10:in `require'
from _GEMS_/gems/railties-3.0.0.beta2/lib/rails/commands/application.rb:10:in `<top (required)>'
from _GEMS_/gems/railties-3.0.0.beta2/bin/rails:30:in `require'
from _GEMS_/gems/railties-3.0.0.beta2/bin/rails:30:in `<top (required)>'
from _GEMS_/bin/rails:19:in `load'
from _GEMS_/bin/rails:19:in `<main>'

I noticed by looking at activesupport 3.0.0b2 that singleton_class has been removed, so commenting the require (line 6) in http://github.com/rails/rails/blob/v3.0.0.beta2/railties/lib/rails/... will resolve the issue, but I haven't checked if somewhere something's using the removed class.

See you

Reported by makevoid · April 3rd, 2010 @ 07:25 PM

State: invalid
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. makevoid
    makevoid
    • No changes were found…

    April 3rd, 2010 @ 07:26 PM

  2. makevoid
    makevoid
    • Tag changed from rails3 generator activesupport singleton singleton_class error to activesupport, error, generator, rails3, railties, singleton, singleton_class

    April 3rd, 2010 @ 07:27 PM

  3. The_Lord
    The_Lord

    Hmm this may sound silly, but running gem cleanup (uninstalling the previous version) solves the problem. I had the same issue and after the cleanup generators work fine.

    April 7th, 2010 @ 11:39 PM

  4. José Valim
    José Valim
    • State changed from new to invalid

    Can't verify. As The_Lord said, something is probably wrong in your setup.

    April 10th, 2010 @ 12:43 PM

  5. José Valim
    José Valim
    • Assigned user set to José Valim

    April 10th, 2010 @ 01:10 PM

  6. Fabio Akita
    Fabio Akita

    Interesting, I had the same error and I can confirm that running "gem cleanup" fixes it, but it should be warned that this new release conflicts with something from previous versions installed in the system.

    April 18th, 2010 @ 06:41 PM