提交 bda4009a 编写于 作者: M Marcel Molina

Fix typo in validations documentation. Closes #7669. [ee]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 1dc56ba4
......@@ -452,10 +452,10 @@ def validates_acceptance_of(*attr_names)
# === Warning
# Validate the presence of the foreign key, not the instance variable itself.
# Do this:
# validate_presence_of :invoice_id
# validates_presence_of :invoice_id
#
# Not this:
# validate_presence_of :invoice
# validates_presence_of :invoice
#
# If you validate the presence of the associated object, you will get
# failures on saves when both the parent object and the child object are
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册