mirror of
https://github.com/github/rails.git
synced 2026-01-30 16:58:15 -05:00
.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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user