aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/source/finders.txt
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2008-12-29 14:19:09 +1030
committerRyan Bigg <radarlistener@gmail.com>2008-12-29 14:19:09 +1030
commit377e72c7008d67ab7c57f6d35d98ee5090cbbb45 (patch)
treee2a054fa83b402038d3a2de6abdbd76029fe5199 /railties/doc/guides/source/finders.txt
parentbf95e5a802b582145d26111984c0ce91e80afcde (diff)
downloadrails-377e72c7008d67ab7c57f6d35d98ee5090cbbb45.tar.gz
rails-377e72c7008d67ab7c57f6d35d98ee5090cbbb45.tar.bz2
rails-377e72c7008d67ab7c57f6d35d98ee5090cbbb45.zip
James B. Byrne's suggestions
Diffstat (limited to 'railties/doc/guides/source/finders.txt')
-rw-r--r--railties/doc/guides/source/finders.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/doc/guides/source/finders.txt b/railties/doc/guides/source/finders.txt
index 88e7c15cb6..a6a7f61c12 100644
--- a/railties/doc/guides/source/finders.txt
+++ b/railties/doc/guides/source/finders.txt
@@ -11,9 +11,9 @@ This guide covers the +find+ method defined in ActiveRecord::Base, as well as ot
* Check for the existence of particular records
* Perform aggregate calculations on Active Record models
-If you're used to using raw SQL to find database records, you'll find that there are generally better ways to carry out the same operations in Rails. Active Record insulates you from the need to use SQL in most cases.
+If you're used to using raw SQL to find database records then, generally, you will find that there are better ways to carry out the same operations in Rails. Active Record insulates you from the need to use SQL in most cases.
-The SQL in your log may have some quoting, and that quoting depends on the backend (MySQL, for example, puts backticks around field and table names). Attempting to copy the raw SQL contained within this guide may not work in your database system. Please consult the database systems manual before attempting to execute any SQL.
+Generated SQL statements that appear in the log files may have their arguments quoted. Further, the form of quoting will be DBMS specific; SQLite3 will use "\ for example while MySQL will use `\ instead. Because of this, simply copying SQL from the examples contained within this guide may not work in your database system. Please consult the database systems manual before attempting to execute any SQL.
== The Sample Models
@@ -769,6 +769,7 @@ Thanks to Mike Gunderloy for his tips on creating this guide.
http://rails.lighthouseapp.com/projects/16213-rails-guides/tickets/16[Lighthouse ticket]
+* December 29 2008: Added http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-32[James B. Byrne's suggestions from this ticket]
* December 23 2008: Xavier Noria suggestions added! From http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-27[this ticket] and http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-28[this ticket] and http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-29[this ticket]
* December 22 2008: Added section on having.
* December 22 2008: Added description of how to make hash conditions use an IN expression http://rails.loglibrary.com/chats/15279234[mentioned here]