diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-01-20 15:04:36 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-01-20 15:04:36 +0100 |
commit | 080fc9cad39a98b6973cd7a7106f1bcb10d3ad02 (patch) | |
tree | 9cd1b01baaf7d3dd7dac0035e83546cc65e07010 /guides/source/action_mailer_basics.md | |
parent | dfac4ced1d108d10ffd52fb79c354a15808d7969 (diff) | |
download | rails-080fc9cad39a98b6973cd7a7106f1bcb10d3ad02.tar.gz rails-080fc9cad39a98b6973cd7a7106f1bcb10d3ad02.tar.bz2 rails-080fc9cad39a98b6973cd7a7106f1bcb10d3ad02.zip |
docs should say `email` not `Email`. [ci skip]
Diffstat (limited to 'guides/source/action_mailer_basics.md')
-rw-r--r-- | guides/source/action_mailer_basics.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/action_mailer_basics.md b/guides/source/action_mailer_basics.md index 83a62773d5..293e999c14 100644 --- a/guides/source/action_mailer_basics.md +++ b/guides/source/action_mailer_basics.md @@ -138,7 +138,7 @@ When you call the `mail` method now, Action Mailer will detect the two templates Mailers are really just another way to render a view. Instead of rendering a view and sending out the HTTP protocol, they are just sending it out through the -Email protocols instead. Due to this, it makes sense to just have your +email protocols instead. Due to this, it makes sense to just have your controller tell the Mailer to send an email when a user is successfully created. Setting this up is painfully simple. @@ -164,7 +164,7 @@ class UsersController < ApplicationController respond_to do |format| if @user.save - # Tell the UserMailer to send a welcome Email after save + # Tell the UserMailer to send a welcome email after save UserMailer.welcome_email(@user).deliver format.html { redirect_to(@user, notice: 'User was successfully created.') } |