Skip to content

Commit f0f9e3f

Browse files
committed
Merge pull request #2764 from chiaraani/patch-1
fix: link at mailer preview generator template
1 parent 4066b49 commit f0f9e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/generators/rspec/mailer/templates/preview.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<% module_namespacing do -%>
2-
# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>
2+
# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>_mailer
33
class <%= class_name %><%= 'Mailer' unless class_name.end_with?('Mailer') %>Preview < ActionMailer::Preview
44
<% actions.each do |action| -%>
55
6-
# Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %>
6+
# Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>_mailer/<%= action %>
77
def <%= action %>
88
<%= class_name.sub(/(Mailer)?$/, 'Mailer') %>.<%= action %>
99
end

0 commit comments

Comments
 (0)