From 8417d967e016f0219cc4ec30bf0d3908ce6cd29b Mon Sep 17 00:00:00 2001 From: Andrew Kaspick Date: Fri, 5 Feb 2016 13:59:17 -0500 Subject: When generating a mailer, you must specify Mailer in the class name in order to generate the proper files. Some of the docs/comments are missing this important detail. --- actionmailer/lib/rails/generators/mailer/USAGE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailer/lib/rails/generators') diff --git a/actionmailer/lib/rails/generators/mailer/USAGE b/actionmailer/lib/rails/generators/mailer/USAGE index 2b0a078109..9f2a6b4cd8 100644 --- a/actionmailer/lib/rails/generators/mailer/USAGE +++ b/actionmailer/lib/rails/generators/mailer/USAGE @@ -8,7 +8,7 @@ Description: Example: ======== - rails generate mailer Notifications signup forgot_password invoice + rails generate mailer NotificationsMailer signup forgot_password invoice creates a Notifications mailer class, views, and test: Mailer: app/mailers/notifications_mailer.rb -- cgit v1.2.3