aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/html
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-01-17 17:31:23 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-01-17 17:31:23 +0000
commit3ad392f6f98e2726c4e5e62d3f45b16ae1c1d89c (patch)
tree68c71ff4feeb5d2d4dc65902dfe4deda065a0a8a /railties/doc/guides/html
parente3fd533d031b6411bbb99b3da94dfb3ec8e0bfdf (diff)
downloadrails-3ad392f6f98e2726c4e5e62d3f45b16ae1c1d89c.tar.gz
rails-3ad392f6f98e2726c4e5e62d3f45b16ae1c1d89c.tar.bz2
rails-3ad392f6f98e2726c4e5e62d3f45b16ae1c1d89c.zip
Add command line to index and minor change in finders guide
Diffstat (limited to 'railties/doc/guides/html')
-rw-r--r--railties/doc/guides/html/active_record_querying.html8
-rw-r--r--railties/doc/guides/html/index.html5
2 files changed, 9 insertions, 4 deletions
diff --git a/railties/doc/guides/html/active_record_querying.html b/railties/doc/guides/html/active_record_querying.html
index cc2a6b7e4a..e42bd80e2b 100644
--- a/railties/doc/guides/html/active_record_querying.html
+++ b/railties/doc/guides/html/active_record_querying.html
@@ -31,7 +31,7 @@
<h2>Chapters</h2>
<ol>
<li>
- <a href="#_ids_first_last_and_all">IDs, First, Last and All</a>
+ <a href="#_retrieving_objects">Retrieving objects</a>
</li>
<li>
<a href="#_conditions">Conditions</a>
@@ -172,7 +172,7 @@ Perform various calculations on Active Record models
</li>
</ul></div>
<div class="paragraph"><p>If you&#8217;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.</p></div>
-<div class="paragraph"><p>Code examples in this guide use one or more of the following models:</p></div>
+<div class="paragraph"><p>Code examples throughout this guide will refer to one or more of the following models:</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 2.9
by Lorenzo Bettini
@@ -221,9 +221,9 @@ http://www.gnu.org/software/src-highlite -->
</div></div>
</div>
</div>
-<h2 id="_ids_first_last_and_all">1. IDs, First, Last and All</h2>
+<h2 id="_retrieving_objects">1. Retrieving objects</h2>
<div class="sectionbody">
-<div class="paragraph"><p>ActiveRecord::Base has methods defined on it to make interacting with your database and the tables within it much, much easier. For finding records, the key method is <tt>find</tt>. This method allows you to pass arguments into it to perform certain queries on your database without the need of SQL. If you wanted to find the record with the id of 1, you could type <tt>Client.find(1)</tt> which would execute this query on your database:</p></div>
+<div class="paragraph"><p>To retrieve objects from the database, Active Record provides a primary method called <tt>find</tt>. This method allows you to pass arguments into it to perform certain queries on your database without the need of SQL. If you wanted to find the record with the id of 1, you could type <tt>Client.find(1)</tt> which would execute this query on your database:</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 2.9
by Lorenzo Bettini
diff --git a/railties/doc/guides/html/index.html b/railties/doc/guides/html/index.html
index 8552848ae6..d1bea57d14 100644
--- a/railties/doc/guides/html/index.html
+++ b/railties/doc/guides/html/index.html
@@ -206,6 +206,11 @@ of your code.</p></div>
<div class="sidebar-title"><a href="configuring.html">Configuring Rails Applications</a></div>
<div class="paragraph"><p>This guide covers the basic configuration settings for a Rails application.</p></div>
</div></div>
+<div class="sidebarblock">
+<div class="sidebar-content">
+<div class="sidebar-title"><a href="command_line.html">Rails Command Line Tools and Rake tasks</a></div>
+<div class="paragraph"><p>This guide covers the command line tools and rake tasks provided by Rails.</p></div>
+</div></div>
<div class="paragraph"><p>Authors who have contributed to complete guides are listed <a href="authors.html">here</a>.</p></div>
<div class="paragraph"><p>This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 License</a></p></div>
</div>