1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix render plain docs example in AM::Base

The errors were introduced in e220a34e39
This commit is contained in:
Guillermo Iguaran 2014-02-18 15:18:37 -05:00
parent 11645adf25
commit 1c248dfbab

View file

@ -724,11 +724,11 @@ module ActionMailer
# format.html # format.html
# end # 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| # mail(to: 'mikel@test.lindsaar.net') do |format|
# format.text { render plain: "Hello Mikel!" } # 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 # end
# #
# Which will render a +multipart/alternative+ email with +text/plain+ and # Which will render a +multipart/alternative+ email with +text/plain+ and