This project is archived and is in readonly mode.
script/generate scaffold not creating missing folders
Reported by Andrew Nesbitt | May 11th, 2008 @ 11:23 AM
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
Comments and changes to this ticket
-
Pratik May 12th, 2008 @ 12:47 AM
- 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.
-
Matt Brindley May 12th, 2008 @ 02:38 AM
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
-
Pratik May 12th, 2008 @ 02:16 PM
- State changed from incomplete to open
-
Repository May 13th, 2008 @ 10:51 AM
- State changed from open to resolved
(from [9fb01ce4b194567e84fa2f8582410fc76720a31f]) ScaffoldGenerator to create public/stylesheets if missing. [#165 state:resolved]
Signed-off-by: Pratik Naik
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>