iain d broadfoot
2006-Jul-24 13:55 UTC
[PATCH] layout scaffold needs to create module directory too
[4527] fixed creating layouts inside modules, but failed to create the directories for the layouts to go in. Index: railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb ==================================================================--- railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb (revision 4618) +++ railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb (working copy) @@ -70,6 +70,7 @@ m.directory File.join(''app/controllers'', controller_class_path) m.directory File.join(''app/helpers'', controller_class_path) m.directory File.join(''app/views'', controller_class_path, controller_file_name) + m.directory File.join(''app/views/layouts'', controller_class_path) m.directory File.join(''test/functional'', controller_class_path) # Depend on model generator but skip if the model exists. -- "If sharing a thing in no way diminishes it, it is not rightly owned if it is not shared." -- St. Augustine #rm -rf / http://www.geeksoc.org/ _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core