.rhtml extension for view only

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2006-10-20 19:17:02 +00:00
parent ba74754c4f
commit 8cbe2fed54

View File

@@ -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,