From 9a62551d43a1844504d79c8b2b91a22641eedff4 Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Thu, 5 Jul 2012 18:21:09 -0700 Subject: Bump query guide to latest version --- guides/source/active_record_querying.textile | 2 -- 1 file changed, 2 deletions(-) (limited to 'guides') diff --git a/guides/source/active_record_querying.textile b/guides/source/active_record_querying.textile index 101988c59e..7edf9c8b6e 100644 --- a/guides/source/active_record_querying.textile +++ b/guides/source/active_record_querying.textile @@ -12,8 +12,6 @@ This guide covers different ways to retrieve data from the database using Active endprologue. -WARNING. This Guide is based on Rails 3.0. Some of the code shown here will not work in other versions of Rails. - If you're used to using raw SQL to find database records, then you will generally 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. Code examples throughout this guide will refer to one or more of the following models: -- cgit v1.2.3 From aa43fa9a0389c65c64ff2b458920abdd61e29ef6 Mon Sep 17 00:00:00 2001 From: Oscar Del Ben Date: Thu, 5 Jul 2012 18:28:44 -0700 Subject: Update list of AR Relation methods --- guides/source/active_record_querying.textile | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'guides') diff --git a/guides/source/active_record_querying.textile b/guides/source/active_record_querying.textile index 7edf9c8b6e..9863d16fda 100644 --- a/guides/source/active_record_querying.textile +++ b/guides/source/active_record_querying.textile @@ -51,20 +51,26 @@ h3. Retrieving Objects from the Database To retrieve objects from the database, Active Record provides several finder methods. Each finder method allows you to pass arguments into it to perform certain queries on your database without writing raw SQL. The methods are: -* +where+ -* +select+ +* +bind+ +* +create_with+ +* +extending+ +* +from+ * +group+ -* +order+ -* +reorder+ -* +reverse_order+ -* +limit+ -* +offset+ -* +joins+ +* +having+ * +includes+ +* +joins+ +* +limit+ * +lock+ +* +offset+ +* +order+ +* +none+ * +readonly+ -* +from+ -* +having+ +* +references+ +* +reorder+ +* +reverse_order+ +* +select+ +* +uniq+ +* +where+ All of the above methods return an instance of ActiveRecord::Relation. -- cgit v1.2.3