Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When generating a mailer, you must specify Mailer in the class name #23500

Merged
merged 1 commit into from
Feb 5, 2016
Merged

When generating a mailer, you must specify Mailer in the class name #23500

merged 1 commit into from
Feb 5, 2016

Conversation

akaspick
Copy link
Contributor

@akaspick akaspick commented Feb 5, 2016

The usage docs for generating a mailer are missing Mailer in the name of the mailer. If you don't add Mailer to the name, your views and tests are generated incorrectly.

Based on the existing docs, if you do this:
rails generate mailer School welcome
The views will be put in app/views/school and the tests will refer to a School class.

You must run the generator like this:
rails generate mailer SchoolMailer welcome

These comment and usage changes reflect this requirement.

order to generate the proper files. Some of the docs/comments are
missing this important detail.
@akaspick
Copy link
Contributor Author

akaspick commented Feb 5, 2016

No code changes, just comments and USAGE docs.

rafaelfranca added a commit that referenced this pull request Feb 5, 2016
When generating a mailer, you must specify Mailer in the class name
@rafaelfranca rafaelfranca merged commit f4f998d into rails:master Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants