aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_querying.md
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-12-01 23:00:47 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-12-01 23:00:47 +0530
commit0181c2da977fc3de4e4c4eac602b26ff180cda2c (patch)
tree4ff327e807bc7729c5b99bf261bdbc5178faf227 /guides/source/active_record_querying.md
parentfb42520252477d83560f2e2a2550c7f377e07bc1 (diff)
parent9685019c4a15eb0222984748e7413dc5920195f4 (diff)
downloadrails-0181c2da977fc3de4e4c4eac602b26ff180cda2c.tar.gz
rails-0181c2da977fc3de4e4c4eac602b26ff180cda2c.tar.bz2
rails-0181c2da977fc3de4e4c4eac602b26ff180cda2c.zip
Merge branch 'master' of github.com:lifo/docrails
Conflicts: guides/source/active_record_validations.md
Diffstat (limited to 'guides/source/active_record_querying.md')
-rw-r--r--guides/source/active_record_querying.md20
1 files changed, 11 insertions, 9 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index 32c139df99..9620270141 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -1,15 +1,17 @@
Active Record Query Interface
=============================
-This guide covers different ways to retrieve data from the database using Active Record. By referring to this guide, you will be able to:
+This guide covers different ways to retrieve data from the database using Active Record.
-* Find records using a variety of methods and conditions
-* Specify the order, retrieved attributes, grouping, and other properties of the found records
-* Use eager loading to reduce the number of database queries needed for data retrieval
-* Use dynamic finders methods
-* Check for the existence of particular records
-* Perform various calculations on Active Record models
-* Run EXPLAIN on relations
+After reading this guide, you will know:
+
+* Find records using a variety of methods and conditions.
+* Specify the order, retrieved attributes, grouping, and other properties of the found records.
+* Use eager loading to reduce the number of database queries needed for data retrieval.
+* Use dynamic finders methods.
+* Check for the existence of particular records.
+* Perform various calculations on Active Record models.
+* Run EXPLAIN on relations.
--------------------------------------------------------------------------------
@@ -466,7 +468,7 @@ The field name can also be a string:
Client.where('locked' => true)
```
-In the case of a belongs_to relationship, an association key can be used to specify the model if an ActiveRecord object is used as the value. This method works with polymorphic relationships as well.
+In the case of a belongs_to relationship, an association key can be used to specify the model if an Active Record object is used as the value. This method works with polymorphic relationships as well.
```ruby
Post.where(author: author)