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.

Please provide script to generate default layout

#1193

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.

Reported by Sudhir · October 8th, 2008 @ 05:44 PM

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

Activity

  1. Pratik
    Pratik
    • State changed from new to invalid

    Create the file manually.

    October 8th, 2008 @ 08:42 PM

  2. Carsten Nielsen
  3. Sudhir
    Sudhir

    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?

    October 9th, 2008 @ 05:18 PM

  4. Stephan
    Stephan

    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…

    October 12th, 2008 @ 11:37 AM