This project is archived and is in readonly mode.
Please provide script to generate default layout
Reported by Sudhir | October 8th, 2008 @ 05:44 PM | in 2.x
Please provide a script to generate a default layout (view template) for a controller.
Something like this:
script/generate layout mycontroller
create app/views/layouts/mycontroller.html.erb
This is required to be able to edit the default layout.
Thanks.
=sudhir.
Comments and changes to this ticket
-
Sudhir October 9th, 2008 @ 05:18 PM
I've been stealing layout files from other projects for a while now.
It would be really nice to have a generator that provides a default layout with Rails specific stuff like commented out lines for "javascript_include_tag :default" and new Rails things that come along in time.
Why exclude this .erb file from being generated?
-
Stephan October 12th, 2008 @ 11:37 AM
Maybe you should have a look at the nifty-generators by Ryan Bates at http://github.com/ryanb/nifty-ge.... Among the many useful generators is one for a layout…
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>