aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/erb/scaffold
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/generators/erb/scaffold')
-rw-r--r--railties/lib/generators/erb/scaffold/scaffold_generator.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/generators/erb/scaffold/scaffold_generator.rb b/railties/lib/generators/erb/scaffold/scaffold_generator.rb
index c89af042b7..c8723785f4 100644
--- a/railties/lib/generators/erb/scaffold/scaffold_generator.rb
+++ b/railties/lib/generators/erb/scaffold/scaffold_generator.rb
@@ -28,13 +28,14 @@ module Erb
# TODO invoke_if?
def copy_layout_file
- template "layout.html.erb", File.join("app", "views", "layouts", controller_class_path, "#{controller_file_name}.html.erb")
+ template "layout.html.erb",
+ File.join("app/views/layouts", controller_class_path, "#{controller_file_name}.html.erb")
end
protected
def copy_view(view)
- template "#{view}.html.erb", File.join("app", "views", controller_file_path, "#{view}.html.erb")
+ template "#{view}.html.erb", File.join("app/views", controller_file_path, "#{view}.html.erb")
end
end