We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4066b49 commit f0f9e3fCopy full SHA for f0f9e3f
lib/generators/rspec/mailer/templates/preview.rb
@@ -1,9 +1,9 @@
1
<% module_namespacing do -%>
2
-# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>
+# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>_mailer
3
class <%= class_name %><%= 'Mailer' unless class_name.end_with?('Mailer') %>Preview < ActionMailer::Preview
4
<% actions.each do |action| -%>
5
6
- # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %>
+ # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>_mailer/<%= action %>
7
def <%= action %>
8
<%= class_name.sub(/(Mailer)?$/, 'Mailer') %>.<%= action %>
9
end
0 commit comments