diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-20 19:17:02 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-10-20 19:17:02 +0000 |
commit | 8cbe2fed545a3ab0d7ad791006fbd1a918325ea3 (patch) | |
tree | e7c61b09d5914e34761d515781f268ab0019433f /railties | |
parent | ba74754c4f1843a76919fcb03a8cec4c32a65378 (diff) | |
download | rails-8cbe2fed545a3ab0d7ad791006fbd1a918325ea3.tar.gz rails-8cbe2fed545a3ab0d7ad791006fbd1a918325ea3.tar.bz2 rails-8cbe2fed545a3ab0d7ad791006fbd1a918325ea3.zip |
.rhtml extension for view only
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb b/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb index afdb17b5ac..e0037727e1 100644 --- a/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb +++ b/railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb @@ -20,8 +20,8 @@ class MailerGenerator < Rails::Generator::NamedBase # View template and fixture for each action. actions.each do |action| - relative_path = File.join(class_path, file_name, "#{action}.rhtml") - view_path = File.join('app/views', relative_path) + relative_path = File.join(class_path, file_name, action) + view_path = File.join('app/views', "#{relative_path}.rhtml") fixture_path = File.join('test/fixtures', relative_path) m.template "view.rhtml", view_path, |