diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-01 19:02:51 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 10:27:40 +0200 |
commit | 86ff07410145430d08e97a8296486c4cd4304cde (patch) | |
tree | c8a648363bf29664c0c076b944d3f6145f4d4ffb /railties/lib/generators/erb/scaffold/scaffold_generator.rb | |
parent | 80cd16372ce1776e5d6af87b2dc7be8205fa1513 (diff) | |
download | rails-86ff07410145430d08e97a8296486c4cd4304cde.tar.gz rails-86ff07410145430d08e97a8296486c4cd4304cde.tar.bz2 rails-86ff07410145430d08e97a8296486c4cd4304cde.zip |
Added test unit files for scaffold_controller.
Diffstat (limited to 'railties/lib/generators/erb/scaffold/scaffold_generator.rb')
-rw-r--r-- | railties/lib/generators/erb/scaffold/scaffold_generator.rb | 5 |
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 |