Permalink
Browse files

Fix render plain docs example in AM::Base

The errors were introduced in e220a34
  • Loading branch information...
1 parent 698389d commit 980cdd30dc06e7cdf3490062731bb9f14789daec @guilleiguaran guilleiguaran committed with carlosantoniodasilva 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 980cdd3

Please sign in to comment.