Skip to content
Browse files

Add validations guide to index

  • Loading branch information...
1 parent 6260dee commit 2a37726958d99bc68e9de1191f9db4e0b2312af4 @lifo lifo committed Dec 31, 2008
View
9 railties/doc/guides/html/finders.html
@@ -348,8 +348,8 @@ <h2 id="site_title_tagline">Sustainable productivity for web-application develop
</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 @@ <h2 id="_changelog">22. Changelog</h2>
<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>
View
23 railties/doc/guides/html/index.html
@@ -179,7 +179,7 @@
</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 @@ <h2 id="site_title_tagline">Sustainable productivity for web-application develop
</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 @@ <h2 id="site_title_tagline">Sustainable productivity for web-application develop
</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>
View
7 railties/doc/guides/source/index.txt
@@ -28,6 +28,13 @@ Everything you need to know to install Rails and create your first application.
This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner.
***********************************************************
+.link:activerecord_validations_callbacks.html[Active Record Validations and Callbacks]
+***********************************************************
+CAUTION: link:http://rails.lighthouseapp.com/projects/16213/tickets/26[Lighthouse Ticket]
+
+This guide covers how you can use Active Record validations and callbacks.
+***********************************************************
+
.link:association_basics.html[Active Record Associations]
***********************************************************
This guide covers all the associations provided by Active Record.

0 comments on commit 2a37726

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