提交 52bbff4e 编写于 作者: M Mark Thomson

Added clarification to description of how initial form values are derived.

上级 23a00110
......@@ -152,7 +152,8 @@ def convert_to_model(object)
# the value entered by the user will be available in the controller as
# <tt>params[:person][:first_name]</tt>.
#
# If <tt>:person</tt> also happens to be the name of an instance variable
# For fields generated in this way using the FormBuilder,
# if <tt>:person</tt> also happens to be the name of an instance variable
# <tt>@person</tt>, the default value of the field shown when the form is
# initially displayed (e.g. in the situation where you are editing an
# existing record) will be the value of the corresponding attribute of
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册