Skip to content
Browse files

Fix formatting of active_record_validations_callbacks.textile so guid…

  • Loading branch information...
1 parent f3f5a8f commit 4b4e67f6ddae1134ac9e79f87b86676f8bbd6bb7 @JDutil JDutil committed with fxn Aug 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/active_record_validations_callbacks.textile
View
4 railties/guides/source/active_record_validations_callbacks.textile
@@ -751,8 +751,6 @@ class Person < ActiveRecord::Base
end
</ruby>
-
-
h4. +errors.clear+
The +clear+ method is used when you intentionally want to clear all the messages in the +errors+ collection. Of course, calling +errors.clear+ upon an invalid object won't actually make it valid: the +errors+ collection will now be empty, but the next time you call +valid?+ or any method that tries to save this object to the database, the validations will run again. If any of the validations fail, the +errors+ collection will be filled again.
@@ -799,13 +797,15 @@ h3. Displaying Validation Errors in the View
Rails maintains an official plugin that provides helpers to display the error messages of your models in your view templates. You can install it as a plugin or as a Gem.
h4. Installing as a plugin
+
<shell>
$ rails plugin install git://github.com/joelmoss/dynamic_form.git
</shell>
h4. Installing as a Gem
Add this line in your Gemfile:
+
<ruby>
gem "dynamic_form"
</ruby>

0 comments on commit 4b4e67f

Please sign in to comment.
Something went wrong with that request. Please try again.