Skip to content

Commit 40ecea7

Browse files
authored
Fix typos in Action Mailer Basics guide
1 parent b7520a1 commit 40ecea7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

guides/source/action_mailer_basics.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ Here is a sample HTML template that can be used for the welcome email:
156156
your username is: <%= @user.login %>.<br>
157157
</p>
158158
<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 %>.
160160
</p>
161161
<p>Thanks for joining and have a great day!</p>
162162
```
163163

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
165165
default mailer layout, which contains the `<html>` tag. See [Mailer
166166
layouts](#mailer-views-and-layouts) for more.
167167

@@ -178,7 +178,7 @@ Welcome to example.com, <%= @user.name %>
178178
You have successfully signed up to example.com,
179179
your username is: <%= @user.login %>.
180180
181-
To login to the site, just follow this link: <%= @url %>.
181+
To log in to the site, just follow this link: <%= @url %>.
182182
183183
Thanks for joining and have a great day!
184184
```
@@ -187,7 +187,7 @@ Notice that in both HTML and text email templates you can use the instance
187187
variables `@user` and `@url`.
188188

189189
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`
191191
email.
192192

193193
### Call the Mailer
@@ -449,15 +449,15 @@ the mailer method.
449449

450450
Mailer views are rendered within a layout, similar to controller views. Mailer
451451
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
453453
around mailer views and layouts.
454454

455455
### Configuring Custom View Paths
456456

457457
It is possible to change the default mailer view for your action in various
458458
ways, as shown below.
459459

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:
461461

462462
```ruby
463463
class UserMailer < ApplicationMailer
@@ -527,7 +527,7 @@ There is also an [`append_view_path`][] method.
527527

528528
### Generating URLs in Action Mailer Views
529529

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
531531
application's domain first. This is because, unlike controllers, the mailer
532532
instance doesn't have any context about the incoming request.
533533

@@ -1036,7 +1036,7 @@ Now the preview will be available at
10361036

10371037
If you change something in the mailer view at
10381038
`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
10401040
<http://localhost:3000/rails/mailers>.
10411041

10421042
By default, these preview classes live in `test/mailers/previews`. This can be

0 commit comments

Comments
 (0)