提交 c1ff7810 编写于 作者: B Bryan Woods

Guides: renaming to active_record_validations_callbacks for consistency and...

Guides: renaming to active_record_validations_callbacks for consistency and updating links to reflect new path
上级 74b4d3f5
......@@ -207,11 +207,11 @@ Likewise, once retrieved an Active Record object can be destroyed which removes
h3. Validations
Active Record allows you to validate the state of a model before it gets written into the database. There are several methods that you can use to check your models and validate that an attribute value is not empty, is unique and not already in the database, follows a specific format and many more. You can learn more about validations in the "Active Record Validations and Callbacks guide":activerecord_validations_callbacks.html#validations-overview.
Active Record allows you to validate the state of a model before it gets written into the database. There are several methods that you can use to check your models and validate that an attribute value is not empty, is unique and not already in the database, follows a specific format and many more. You can learn more about validations in the "Active Record Validations and Callbacks guide":active_record_validations_callbacks.html#validations-overview.
h3. Callbacks
Active Record callbacks allow you to attach code to certain events in the life-cycle of your models. This enables you to add behavior to your models by transparently executing code when those events occur, like when you create a new record, update it, destroy it and so on. You can learn more about callbacks in the "Active Record Validations and Callbacks guide":activerecord_validations_callbacks.html#callbacks-overview.
Active Record callbacks allow you to attach code to certain events in the life-cycle of your models. This enables you to add behavior to your models by transparently executing code when those events occur, like when you create a new record, update it, destroy it and so on. You can learn more about callbacks in the "Active Record Validations and Callbacks guide":active_record_validations_callbacks.html#callbacks-overview.
h3. Migrations
......
......@@ -205,7 +205,7 @@ Upon form submission the value entered by the user will be stored in +params[:pe
WARNING: You must pass the name of an instance variable, i.e. +:person+ or +"person"+, not an actual instance of your model object.
Rails provides helpers for displaying the validation errors associated with a model object. These are covered in detail by the "Active Record Validations and Callbacks":./activerecord_validations_callbacks.html#displaying-validation-errors-in-the-view guide.
Rails provides helpers for displaying the validation errors associated with a model object. These are covered in detail by the "Active Record Validations and Callbacks":./active_record_validations_callbacks.html#displaying-validation-errors-in-the-view guide.
h4. Binding a Form to an Object
......
......@@ -47,7 +47,7 @@ Ruby on Rails Guides
<p>This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner.</p>
<% end %>
<%= guide("Active Record Validations and Callbacks", 'activerecord_validations_callbacks.html') do %>
<%= guide("Active Record Validations and Callbacks", 'active_record_validations_callbacks.html') do %>
<p>This guide covers how you can use Active Record validations and callbacks.</p>
<% end %>
......
......@@ -50,7 +50,7 @@
<dd><a href="getting_started.html">Getting Started with Rails</a></dd>
<dt>Models</dt>
<dd><a href="migrations.html">Rails Database Migrations</a></dd>
<dd><a href="activerecord_validations_callbacks.html">Active Record Validations and Callbacks</a></dd>
<dd><a href="active_record_validations_callbacks.html">Active Record Validations and Callbacks</a></dd>
<dd><a href="association_basics.html">Active Record Associations</a></dd>
<dd><a href="active_record_querying.html">Active Record Query Interface</a></dd>
<dt>Views</dt>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册