@@ -156,12 +156,12 @@ Here is a sample HTML template that can be used for the welcome email:
156
156
your username is: <%= @user.login %>.<br>
157
157
</p>
158
158
<p>
159
- To login to the site, just follow this link: <%= link_to 'login', login_url %>.
159
+ To log in to the site, just follow this link: <%= link_to 'login', login_url %>.
160
160
</p>
161
161
<p>Thanks for joining and have a great day!</p>
162
162
```
163
163
164
- NOTE: the above is the content of the ` <body> ` tag. It will be embedded in the
164
+ NOTE: The above is the content of the ` <body> ` tag. It will be embedded in the
165
165
default mailer layout, which contains the ` <html> ` tag. See [ Mailer
166
166
layouts] ( #mailer-views-and-layouts ) for more.
167
167
@@ -178,7 +178,7 @@ Welcome to example.com, <%= @user.name %>
178
178
You have successfully signed up to example.com,
179
179
your username is: <%= @user.login %>.
180
180
181
- To login to the site, just follow this link: <%= @url %>.
181
+ To log in to the site, just follow this link: <%= @url %>.
182
182
183
183
Thanks for joining and have a great day!
184
184
```
@@ -187,7 +187,7 @@ Notice that in both HTML and text email templates you can use the instance
187
187
variables ` @user ` and ` @url ` .
188
188
189
189
Now, when you call the ` mail ` method, Action Mailer will detect the two
190
- templates(text and HTML) and automatically generate a ` multipart/alternative `
190
+ templates (text and HTML) and automatically generate a ` multipart/alternative `
191
191
email.
192
192
193
193
### Call the Mailer
@@ -449,15 +449,15 @@ the mailer method.
449
449
450
450
Mailer views are rendered within a layout, similar to controller views. Mailer
451
451
layouts are located in ` app/views/layouts ` . The default layout is
452
- ` mailer.html.erb ` and ` mailer.text.erb ` . This sections covers various features
452
+ ` mailer.html.erb ` and ` mailer.text.erb ` . This section covers various features
453
453
around mailer views and layouts.
454
454
455
455
### Configuring Custom View Paths
456
456
457
457
It is possible to change the default mailer view for your action in various
458
458
ways, as shown below.
459
459
460
- There is a ` template_path ` and ` template_name ` option to the ` mail ` method:
460
+ There are ` template_path ` and ` template_name ` options to the ` mail ` method:
461
461
462
462
``` ruby
463
463
class UserMailer < ApplicationMailer
@@ -527,7 +527,7 @@ There is also an [`append_view_path`][] method.
527
527
528
528
### Generating URLs in Action Mailer Views
529
529
530
- In order to add URLs to your mailer, you need set the ` host ` value to your
530
+ In order to add URLs to your mailer, you need to set the ` host ` value to your
531
531
application's domain first. This is because, unlike controllers, the mailer
532
532
instance doesn't have any context about the incoming request.
533
533
@@ -1036,7 +1036,7 @@ Now the preview will be available at
1036
1036
1037
1037
If you change something in the mailer view at
1038
1038
` app/views/user_mailer/welcome_email.html.erb ` or the mailer itself, the preview
1039
- will automatically be updated. A list of previews are also available in
1039
+ will automatically be updated. A list of previews is also available in
1040
1040
< http://localhost:3000/rails/mailers > .
1041
1041
1042
1042
By default, these preview classes live in ` test/mailers/previews ` . This can be
0 commit comments