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.

No way to generate default controller view template

#1105

Pre-rails 2.0, script/generate controller xxx used to generate app/views/layouts/xxx.rhtml. Now it doesn't.

That's OK until the developer needs to change the controller template.

There is no obvious way to generate the default controller template.

Without the default template, one would have to copy a template from somewhere else. Not a good way especially if the latest default template changes over time. It might even be useful to put in a javascript_include_tag in a generated template, perhaps commented out.

Either revert script/generate controller behavior to generate the controller template or provide a new generator.

Thanks,

=sudhir.

Reported by Sudhir · September 24th, 2008 @ 08:13 PM

State: invalid
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. josh
    josh
    • State changed from new to invalid

    I think your confusing scaffold and controller. I doubled checked the 1-2 branch, and script/generate controller doesn't create a layout at all.

    http://github.com/rails/rails/tr...

    September 27th, 2008 @ 01:44 AM