提交 393ece56 编写于 作者: X Xavier Noria

fixes broken links in finders guide

上级 0e12b554
...@@ -382,7 +382,7 @@ This will find all clients created yesterday by using a +BETWEEN+ SQL statement: ...@@ -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') SELECT * FROM clients WHERE (clients.created_at BETWEEN '2008-12-21 00:00:00' AND '2008-12-22 00:00:00')
</sql> </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 h5. Subset Conditions
...@@ -444,7 +444,7 @@ By default, <tt>Model.find</tt> selects all the fields from the result set using ...@@ -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+. 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 /> <br />
...@@ -722,7 +722,7 @@ Category.all :joins => {:posts => [{:comments => :guest}, :tags]} ...@@ -722,7 +722,7 @@ Category.all :joins => {:posts => [{:comments => :guest}, :tags]}
h4. Specifying Conditions on the Joined Tables 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> <ruby>
time_range = (Time.now.midnight - 1.day)..Time.now.midnight 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 ...@@ -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 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 h3. Dynamic Finders
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册