aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides/html
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-12-31 15:28:16 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-12-31 15:28:16 +0000
commit2a37726958d99bc68e9de1191f9db4e0b2312af4 (patch)
treedad57b8ac1dc899ba77a4a9c92a48a24f4a9468b /railties/doc/guides/html
parent6260dee0154e189a84637e31cd438da0e4809350 (diff)
downloadrails-2a37726958d99bc68e9de1191f9db4e0b2312af4.tar.gz
rails-2a37726958d99bc68e9de1191f9db4e0b2312af4.tar.bz2
rails-2a37726958d99bc68e9de1191f9db4e0b2312af4.zip
Add validations guide to index
Diffstat (limited to 'railties/doc/guides/html')
-rw-r--r--railties/doc/guides/html/finders.html9
-rw-r--r--railties/doc/guides/html/index.html23
2 files changed, 22 insertions, 10 deletions
diff --git a/railties/doc/guides/html/finders.html b/railties/doc/guides/html/finders.html
index eeba1d71f0..ba766b71b9 100644
--- a/railties/doc/guides/html/finders.html
+++ b/railties/doc/guides/html/finders.html
@@ -348,8 +348,8 @@ Perform aggregate calculations on Active Record models
</p>
</li>
</ul></div>
-<div class="paragraph"><p>If you&#8217;re used to using raw SQL to find database records, you&#8217;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.</p></div>
-<div class="paragraph"><p>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.</p></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>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.</p></div>
</div>
</div>
<h2 id="_the_sample_models">1. The Sample Models</h2>
@@ -1090,6 +1090,11 @@ http://www.gnu.org/software/src-highlite -->
<div class="ulist"><ul>
<li>
<p>
+December 29 2008: Added <a href="http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-32">James B. Byrne&#8217;s suggestions from this ticket</a>
+</p>
+</li>
+<li>
+<p>
December 23 2008: Xavier Noria suggestions added! From <a href="http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-27">this ticket</a> and <a href="http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-28">this ticket</a> and <a href="http://rails.lighthouseapp.com/projects/16213/tickets/16-activerecord-finders#ticket-16-29">this ticket</a>
</p>
</li>
diff --git a/railties/doc/guides/html/index.html b/railties/doc/guides/html/index.html
index 72525c492b..ac192f8cff 100644
--- a/railties/doc/guides/html/index.html
+++ b/railties/doc/guides/html/index.html
@@ -179,7 +179,7 @@ ul#navMain {
</style>
</head>
<body>
- <div id="header" >
+ <div id="header" class="notoc">
<div id="logo">
<a href="index.html" title="Ruby on Rails"><img src="images/rails_logo_remix.gif" alt="Rails" height="140" width="110" /></a>
</div>
@@ -193,13 +193,7 @@ ul#navMain {
</ul>
</div>
- <div id="container">
-
- <div id="sidebar">
- <h2>Chapters</h2>
- <ol>
- </ol>
- </div>
+ <div id="container" class="notoc">
<div id="content">
<h1>Ruby on Rails Guides</h1>
@@ -248,6 +242,19 @@ ul#navMain {
</div></div>
<div class="sidebarblock">
<div class="sidebar-content">
+<div class="sidebar-title"><a href="activerecord_validations_callbacks.html">Active Record Validations and Callbacks</a></div>
+<div class="admonitionblock">
+<table><tr>
+<td class="icon">
+<img src="./images/icons/caution.png" alt="Caution" />
+</td>
+<td class="content"><a href="http://rails.lighthouseapp.com/projects/16213/tickets/26">Lighthouse Ticket</a></td>
+</tr></table>
+</div>
+<div class="paragraph"><p>This guide covers how you can use Active Record validations and callbacks.</p></div>
+</div></div>
+<div class="sidebarblock">
+<div class="sidebar-content">
<div class="sidebar-title"><a href="association_basics.html">Active Record Associations</a></div>
<div class="paragraph"><p>This guide covers all the associations provided by Active Record.</p></div>
</div></div>