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.

Rails 3 Application Templates do not work

#3707

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?

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

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

Activity

  1. James A Rosen
    James A Rosen
    • Tag changed from templates 3.0 generators to 3.0, generators, templates

    January 16th, 2010 @ 03:55 PM

  2. James A Rosen
    James A Rosen
    • Tag changed from 3.0, generators, templates to 3.0, bugmash, generators, templates

    January 16th, 2010 @ 03:56 PM

  3. Rizwan Reza
    Rizwan Reza

    I just posted a fix to it in another ticket... didn't see this one.

    January 16th, 2010 @ 07:50 PM

  4. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to duplicate

    January 16th, 2010 @ 08:07 PM

  5. James A Rosen