Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed duplicated IDs on active_record_querying guide to validate XHTM…

…L 1.0 Strict
  • Loading branch information...
1 parent 647addd commit 40e9cb6f4df3f10ef80284023595fe6a955e1740 @jaimeiniesta jaimeiniesta committed with fxn
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/active_record_querying.textile
4 railties/guides/source/active_record_querying.textile
@@ -274,7 +274,7 @@ Client.where(
This makes for clearer readability if you have a large number of variable conditions.
-h5. Range Conditions
+h5(#array-range_conditions). Range Conditions
If you're looking for a range inside of a table (for example, users created in a certain timeframe) you can use the conditions option coupled with the +IN+ SQL statement for this. If you had two dates coming in from a controller you could do something like this to look for a range:
@@ -353,7 +353,7 @@ The field name does not have to be a symbol it can also be a string:
Client.where({ 'locked' => true })
-h5. Range Conditions
+h5(#hash-range_conditions). Range Conditions
The good thing about this is that we can pass in a range for our fields without it generating a large query as shown in the preamble of this section.

0 comments on commit 40e9cb6

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