This project is archived and is in readonly mode.

#1105 ✓invalid
Sudhir

No way to generate default controller view template

Reported by Sudhir | September 24th, 2008 @ 08:13 PM | in 2.x

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.

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