diff options
author | Luke Chesser <luke@unsplash.com> | 2015-07-16 00:53:42 -0400 |
---|---|---|
committer | Luke Chesser <luke@unsplash.com> | 2015-07-16 00:53:42 -0400 |
commit | 29acc869db72570822c9774aec3ab6ac4a229890 (patch) | |
tree | 52e5701b48dc15388fb91e895313de0e205137a1 /guides | |
parent | 094571b46dbc00a2db0bfcc96c38d984d2b675f3 (diff) | |
download | rails-29acc869db72570822c9774aec3ab6ac4a229890.tar.gz rails-29acc869db72570822c9774aec3ab6ac4a229890.tar.bz2 rails-29acc869db72570822c9774aec3ab6ac4a229890.zip |
Update validation guide for acceptance method
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_validations.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 71ca7a0f66..74da951b9e 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -273,9 +273,13 @@ available helpers. This method validates that a checkbox on the user interface was checked when a form was submitted. This is typically used when the user needs to agree to your application's terms of service, confirm that some text is read, or any similar -concept. This validation is very specific to web applications and this -'acceptance' does not need to be recorded anywhere in your database (if you -don't have a field for it, the helper will just create a virtual attribute). +concept. + +This validation is very specific to web applications and this +'acceptance' does not need to be recorded anywhere in your database. If you +don't have a field for it, the helper will just create a virtual attribute. If +the field does exist in your database, the `accept` option must be set to +`true` or else the validation will not run. ```ruby class Person < ActiveRecord::Base |