Fix AMo code example indent, add missing author to entry [ci skip]

This commit is contained in:
Carlos Antonio da Silva 2013-03-09 14:57:10 -03:00
parent 72be5bb557
commit b3a31e9363
1 changed files with 8 additions and 6 deletions

View File

@ -5,23 +5,25 @@
Example:
# given User has_secure_password.
# Given User has_secure_password.
@user.password = ""
@user.password_confirmation = ""
@user.valid?(:update) # used to be false
*Yves Senn*
* `validates_confirmation_of` does not override writer methods for
the confirmation attribute if no reader is defined.
Example:
class Blog
def title=(new_title)
@title = new_title.downcase
end
def title=(new_title)
@title = new_title.downcase
end
# previously this would override the setter above.
validates_confirmation_of :title
# previously this would override the setter above.
validates_confirmation_of :title
end
*Yves Senn*