mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Doc fix (closes #5429)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4547 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -597,6 +597,13 @@ module ActionController #:nodoc:
|
||||
# # placed in "app/views/layouts/special.r(html|xml)"
|
||||
# render :text => "Explosion!", :layout => "special"
|
||||
#
|
||||
# The :text option can also accept a Proc object, which can be used to manually control the page generation. This should
|
||||
# generally be avoided, as it violates the separation between code and content, and because almost everything that can be
|
||||
# done with this method can also be done more cleanly using one of the other rendering methods, most notably templates.
|
||||
#
|
||||
# # Renders "Hello from code!"
|
||||
# render :text => proc { |response, output| output.write("Hello from code!") }
|
||||
#
|
||||
# _Deprecation_ _notice_: This used to have the signature <tt>render_text("text", status = 200)</tt>
|
||||
#
|
||||
# === Rendering an inline template
|
||||
|
||||
Reference in New Issue
Block a user