diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/erb/controller/controller_generator.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/generators/erb/controller/controller_generator.rb b/railties/lib/generators/erb/controller/controller_generator.rb index a8bbcf401c..d78bcba1b8 100644 --- a/railties/lib/generators/erb/controller/controller_generator.rb +++ b/railties/lib/generators/erb/controller/controller_generator.rb @@ -10,8 +10,9 @@ module Erb empty_directory base_path actions.each do |action| - @action, @path = action, File.join(base_path, action) - template filename_with_extensions(:view), filename_with_extensions(@path) + @action = action + @path = filename_with_extensions(File.join(base_path, action)) + template filename_with_extensions(:view), @path end end end |