diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2005-07-14 01:12:21 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2005-07-14 01:12:21 +0000 |
commit | 19ee13867e8630233b59d57849aecc2a7e918c29 (patch) | |
tree | fad3f68f96336c50a8a6ec56efacd47bb5e9e456 /railties/lib/rails_generator/generators/components/scaffold | |
parent | fe0c7f4f76e8efce0d71fe705ce04e93bae74944 (diff) | |
download | rails-19ee13867e8630233b59d57849aecc2a7e918c29.tar.gz rails-19ee13867e8630233b59d57849aecc2a7e918c29.tar.bz2 rails-19ee13867e8630233b59d57849aecc2a7e918c29.zip |
Show correct paths to generated templates for nexted controllers. Fixes #730
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/components/scaffold')
-rw-r--r-- | railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb b/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb index 6307a73e43..5c744e8af9 100644 --- a/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +++ b/railties/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb @@ -115,12 +115,12 @@ class ScaffoldGenerator < Rails::Generator::NamedBase # Unscaffolded views. unscaffolded_actions.each do |action| - m.template "controller:view.rhtml", - File.join('app/views', - controller_class_path, - controller_file_name, - "#{action}.rhtml"), - :assigns => { :action => action } + path = File.join('app/views', + controller_class_path, + controller_file_name, + "#{action}.rhtml") + m.template "controller:view.rhtml", path, + :assigns => { :action => action, :path => path} end end end |