diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-01-09 18:58:27 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-01-09 18:58:27 +0000 |
commit | a2a0b44a9adb2c34770f2eef7e8db435bcdce55c (patch) | |
tree | a6a4b82107008237604e19a5ddfd09c3a0526e9d /railties/doc/guides/html/activerecord_validations_callbacks.html | |
parent | 79eba81df8177685575f06a098325424a0c8dfd0 (diff) | |
download | rails-a2a0b44a9adb2c34770f2eef7e8db435bcdce55c.tar.gz rails-a2a0b44a9adb2c34770f2eef7e8db435bcdce55c.tar.bz2 rails-a2a0b44a9adb2c34770f2eef7e8db435bcdce55c.zip |
Some more perf guide stuff
Diffstat (limited to 'railties/doc/guides/html/activerecord_validations_callbacks.html')
-rw-r--r-- | railties/doc/guides/html/activerecord_validations_callbacks.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/html/activerecord_validations_callbacks.html b/railties/doc/guides/html/activerecord_validations_callbacks.html index 2aa09ee125..7936de209d 100644 --- a/railties/doc/guides/html/activerecord_validations_callbacks.html +++ b/railties/doc/guides/html/activerecord_validations_callbacks.html @@ -635,7 +635,7 @@ http://www.gnu.org/software/src-highlite --> <td class="icon">
<img src="./images/icons/note.png" alt="Note" />
</td>
-<td class="content">If you want to validate the presence of a boolean field (where the real values are true and false), you will want to use validates_inclusion_of :field_name, :in ⇒ [true, false] This is due to the way Object#blank? handles boolean values. false.blank? # ⇒ true</td>
+<td class="content">If you want to validate the presence of a boolean field (where the real values are true and false), you will want to use validates_inclusion_of :field_name, :in => [true, false] This is due to the way Object#blank? handles boolean values. false.blank? # => true</td>
</tr></table>
</div>
<div class="paragraph"><p>The default error message for <tt>validates_presence_of</tt> is "<em>can’t be empty</em>".</p></div>
|