Permalink
Browse files

Fix render plain docs example in AM::Base

The errors were introduced in e220a34
  • Loading branch information...
1 parent 11645ad commit 1c248dfbabd2f2d99191e3ab2a013061e7a1c896 @guilleiguaran guilleiguaran committed Feb 18, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionmailer/lib/action_mailer/base.rb
@@ -724,11 +724,11 @@ def attachments
# format.html
# end
#
- # You can even render plain directly without using a template:
+ # You can even render plain text directly without using a template:
#
# mail(to: 'mikel@test.lindsaar.net') do |format|
# format.text { render plain: "Hello Mikel!" }
- # format.html { render plain: "<h1>Hello Mikel!</h1>" }
+ # format.html { render html: "<h1>Hello Mikel!</h1>".html_safe }
# end
#
# Which will render a +multipart/alternative+ email with +text/plain+ and

0 comments on commit 1c248df

Please sign in to comment.