This project is archived and is in readonly mode.

#3707 ✓duplicate
James A Rosen

Rails 3 Application Templates do not work

Reported by James A Rosen | January 16th, 2010 @ 03:48 PM

I wanted to create an example Rails 3 template file for the bug-mash, so I started with the following, just to see where the template code was:

    # in test_template.rb

raise 'foo'</code>



I then ran that with rake rails:template LOCATION=test_template.rb --trace. I got

no such file to load -- generators

So I delved into railties/lib/rails/tasks/framework.rake and changed require 'generators' to require 'rails/generators' in the :template task. Now I get

uninitialized constant Rails::Generators::App

I looked in railties/lib/rails/generators and found nothing relevant. What happened to the application generators?

Comments and changes to this ticket

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

Pages