diff options
author | Xavier Noria <fxn@hashref.com> | 2009-03-15 10:32:14 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-03-15 10:32:14 +0100 |
commit | 393ece56877926d7ae76a212b2f3afb9408c7b6c (patch) | |
tree | e8b19e8349a7b384ec0337f55553a14e0959ccfc /railties/guides/source/active_record_querying.textile | |
parent | 0e12b554c9601d0402ea3d5038f72fcace5bfb31 (diff) | |
download | rails-393ece56877926d7ae76a212b2f3afb9408c7b6c.tar.gz rails-393ece56877926d7ae76a212b2f3afb9408c7b6c.tar.bz2 rails-393ece56877926d7ae76a212b2f3afb9408c7b6c.zip |
fixes broken links in finders guide
Diffstat (limited to 'railties/guides/source/active_record_querying.textile')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index c0768d5e89..a8afb61bf5 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -382,7 +382,7 @@ This will find all clients created yesterday by using a +BETWEEN+ SQL statement: SELECT * FROM clients WHERE (clients.created_at BETWEEN '2008-12-21 00:00:00' AND '2008-12-22 00:00:00') </sql> -This demonstrates a shorter syntax for the examples in "Array Conditions":#arrayconditions +This demonstrates a shorter syntax for the examples in "Array Conditions":#array-conditions h5. Subset Conditions @@ -444,7 +444,7 @@ By default, <tt>Model.find</tt> selects all the fields from the result set using To select only a subset of fields from the result set, you can specify the subset via +:select+ option on the +find+. -NOTE: If the +:select+ option is used, all the returning objects will be "read only":#readonlyobjects. +NOTE: If the +:select+ option is used, all the returning objects will be "read only":#readonly-objects. <br /> @@ -722,7 +722,7 @@ Category.all :joins => {:posts => [{:comments => :guest}, :tags]} h4. Specifying Conditions on the Joined Tables -You can specify conditions on the joined tables using the regular "Array":#arrayconditions and "String":#purestringconditions conditions. "Hash conditions":#hashconditions provides a special syntax for specifying conditions for the joined tables: +You can specify conditions on the joined tables using the regular "Array":#array-conditions and "String":#pure-string-conditions conditions. "Hash conditions":#hash-conditions provides a special syntax for specifying conditions for the joined tables: <ruby> time_range = (Time.now.midnight - 1.day)..Time.now.midnight @@ -800,7 +800,7 @@ The above code finds the category with id 1 and eager loads all the posts associ h4. Specifying Conditions on Eager Loaded Associations -Even though Active Record lets you specify conditions on the eager loaded associations just like +:joins+, the recommended way is to use ":joins":#joiningtables instead. +Even though Active Record lets you specify conditions on the eager loaded associations just like +:joins+, the recommended way is to use ":joins":#joining-tables instead. h3. Dynamic Finders |