This project is archived and is in readonly mode.

#3337 ✓resolved
Paul Sadauskas (Rando)

Broken require in framework.rake

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

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

See attached for diff.

Comments and changes to this ticket

  • Kouhei Sutou

    Kouhei Sutou October 8th, 2009 @ 09:26 AM

    There is one more same problem in rails:template.

  • Rick

    Rick October 21st, 2009 @ 02:45 AM

    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

  • Rick

    Rick October 22nd, 2009 @ 05:46 PM

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

  • Rick

    Rick October 22nd, 2009 @ 05:48 PM

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

  • Pratik

    Pratik January 17th, 2010 @ 07:04 PM

    • State changed from “new” to “resolved”

    Already fixed.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages