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.

script/generate scaffold not creating missing folders

#165

Because git doesn't look after empty folders, sometimes in a new rails app some folders (like stylesheets and test/fixtures) may be missing.

Scaffold fails if those folders do not exist instead of creating those folders first, which is probably should now we are all moving onto git

Example: http://pastie.caboo.se/195092

Reported by Andrew Nesbitt · May 11th, 2008 @ 11:23 AM

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

Activity

  1. Pratik
    Pratik
    • State changed from new to incomplete

    Please submit a patch. Ideally speaking, one should take care of empty directories of a rails app while first committing to git.

    Thanks.

    May 12th, 2008 @ 12:47 AM

  2. Matt Brindley
    Matt Brindley

    I've attached a patch to create public/stylesheets if it doesn't already exist.

    I believe the others are created if they don't exist already? I've tried deleting each directory it expects and they were all recreated (except for public/stylesheets).

    Before and after: http://pastie.caboo.se/195309

    May 12th, 2008 @ 02:38 AM

  3. Pratik
    Pratik
    • State changed from incomplete to open

    May 12th, 2008 @ 02:16 PM

  4. Repository
    Repository
    • State changed from open to resolved

    (from [9fb01ce4b194567e84fa2f8582410fc76720a31f]) ScaffoldGenerator to create public/stylesheets if missing. [#165 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    May 13th, 2008 @ 10:51 AM