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.

Broken require in framework.rake

#3337

require 'generators' should be require 'rails/generators'

See attached for diff.

Reported by Paul Sadauskas (Rando) · October 6th, 2009 @ 05:42 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Kouhei Sutou
    Kouhei Sutou

    There is one more same problem in rails:template.

    October 8th, 2009 @ 09:26 AM

  2. Rick
    Rick

    Additional problem with framework.rake:

    With simple.rb ==
    PROJECT_NAME = File.basename(Rails.root)

    Running:
    rake rails:template LOCATION=./simple.rb

    Gives:
    rake aborted! uninitialized constant Rails::Generators::App /opt/R1.9s-R3pre/lib/ruby/1.9.1/rake.rb:2482:in const_missing' /opt/R1.9s-R3pre/lib/ruby/gems/1.9.1/gems/rails-3.0.pre/lib/rails/tasks/framework.rake:90:inblock (2 levels) in ' . . .

    The offending line:
    generator = Rails::Generators::App.new [ Rails.root ], {}, :destination_root => Rails.root Maybe want: AppGenerator.new

    October 21st, 2009 @ 02:45 AM

  3. Rick
    Rick

    Here's a diff that enables "rake rails:template LOCATION=...". It is based on rails update current 10/22.

    October 22nd, 2009 @ 05:46 PM

  4. Rick
    Rick

    Sorry, wrong diff. This one is applied to lib/rails/tasks/framework.rake.

    October 22nd, 2009 @ 05:48 PM

  5. Pratik
    Pratik
    • State changed from new to resolved

    Already fixed.

    January 17th, 2010 @ 07:04 PM