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

doc: form_for does return output rather than merely evaluate its block

This commit is contained in:
Wincent Colaiuta 2010-07-21 19:21:05 +02:00 committed by Xavier Noria
parent ab62aa1c43
commit 198975ecee

View file

@ -150,10 +150,6 @@ module ActionView
# here a named route directly as well. Defaults to the current action. # here a named route directly as well. Defaults to the current action.
# * <tt>:html</tt> - Optional HTML attributes for the form tag. # * <tt>:html</tt> - Optional HTML attributes for the form tag.
# #
# Worth noting is that the +form_for+ tag is called in a ERb evaluation
# block, not an ERb output block. So that's <tt><% %></tt>, not
# <tt><%= %></tt>.
#
# Also note that +form_for+ doesn't create an exclusive scope. It's still # Also note that +form_for+ doesn't create an exclusive scope. It's still
# possible to use both the stand-alone FormHelper methods and methods # possible to use both the stand-alone FormHelper methods and methods
# from FormTagHelper. For example: # from FormTagHelper. For example: