Skip to content

Commit

Permalink
Fix render plain docs example in AM::Base
Browse files Browse the repository at this point in the history
The errors were introduced in e220a34
  • Loading branch information
guilleiguaran committed Feb 18, 2014
1 parent 11645ad commit 1c248df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionmailer/lib/action_mailer/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1c248df

Please sign in to comment.