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:
parent
11645adf25
commit
1c248dfbab
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue