This project is archived and is in readonly mode.
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
-
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.rbGives:
rake aborted! uninitialized constant Rails::Generators::App /opt/R1.9s-R3pre/lib/ruby/1.9.1/rake.rb:2482:inconst_missing' /opt/R1.9s-R3pre/lib/ruby/gems/1.9.1/gems/rails-3.0.pre/lib/rails/tasks/framework.rake:90:in
block (2 levels) in ' . . .The offending line:
generator = Rails::Generators::App.new [ Rails.root ], {}, :destination_root => Rails.root Maybe want: AppGenerator.new -
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 October 22nd, 2009 @ 05:48 PM
Sorry, wrong diff. This one is applied to lib/rails/tasks/framework.rake.
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>