1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml" lang=
"en" xml:
lang=
"en">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
5 <title>Ruby on Rails guides
</title>
7 <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
9 <link href=
"stylesheets/base.css" media=
"screen" rel=
"Stylesheet" type=
"text/css" />
10 <link href=
"stylesheets/forms.css" media=
"screen" rel=
"Stylesheet" type=
"text/css" />
11 <link href=
"stylesheets/more.css" media=
"screen" rel=
"Stylesheet" type=
"text/css" />
12 <style type=
"text/css">
36 border: solid
1px #cccccc;
52 #content dt tt, #content pre tt {
81 div#header h1#site_title {
82 background: url('images/ruby_on_rails_by_mike_rundle2.gif') top left no-repeat;
108 .left-floaty, .right-floaty {
120 .admonitionblock .icon {
124 .admonitionblock .content {
125 border: solid
1px #ffda78;
132 .admonitionblock .title {
134 margin-bottom:
0.5em;
138 border: solid
1px #aaaaff;
156 border: solid
1px #ccccbb;
161 .sidebarblock .sidebar-title {
164 margin-bottom:
0.3em;
167 .sidebarblock .sidebar-content
> .para:last-child
> p {
171 .sidebarblock .sidebar-title a {
172 text-decoration: none;
175 .sidebarblock .sidebar-title a:hover {
176 text-decoration: underline;
182 <div id=
"header" class=
"notoc">
184 <a href=
"index.html" title=
"Ruby on Rails"><img src=
"images/rails_logo_remix.gif" alt=
"Rails" height=
"140" width=
"110" /></a>
187 <h1 id=
"site_title"><span>Ruby on Rails
</span></h1>
188 <h2 id=
"site_title_tagline">Sustainable productivity for web-application development
</h2>
191 <li class=
"first-child"><a href=
"http://www.rubyonrails.org/" title=
"Ruby on Rails" class=
"ruby_on_rails">Ruby on Rails
</a></li>
192 <li><a class=
"manuals" href=
"index.html" title=
"Manuals Index">Guides Index
</a></li>
196 <div id=
"container" class=
"notoc">
199 <h1>Ruby on Rails guides
</h1>
201 <div class=
"sectionbody">
202 <div class=
"admonitionblock">
205 <img src=
"./images/icons/warning.png" alt=
"Warning" />
207 <td class=
"content">This page is the result of ongoing
<a href=
"http://hackfest.rubyonrails.org/guide">Rails Guides hackfest
</a> and a work in progress.
</td>
210 <div class=
"admonitionblock">
213 <img src=
"./images/icons/caution.png" alt=
"Caution" />
215 <td class=
"content">Guides marked with this icon are currently being worked on. While they might still be useful to you, they may contain incomplete information and even errors. You can help by reviewing them and posting your comments and corrections at the respective Lighthouse ticket.
</td>
219 <div class=
"sidebarblock">
220 <div class=
"sidebar-content">
221 <div class=
"sidebar-title"><a href=
"getting_started_with_rails.html">Getting Started with Rails
</a></div>
222 <div class=
"para"><p>Everything you need to know to install Rails and create your first application.
</p></div>
225 <div class=
"sidebarblock">
226 <div class=
"sidebar-content">
227 <div class=
"sidebar-title"><a href=
"migrations.html">Rails Database Migrations
</a></div>
228 <div class=
"para"><p>This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner.
</p></div>
230 <div class=
"sidebarblock">
231 <div class=
"sidebar-content">
232 <div class=
"sidebar-title"><a href=
"association_basics.html">Active Record Associations
</a></div>
233 <div class=
"para"><p>This guide covers all the associations provided by Active Record.
</p></div>
235 <div class=
"sidebarblock">
236 <div class=
"sidebar-content">
237 <div class=
"sidebar-title"><a href=
"finders.html">Active Record Finders
</a></div>
238 <div class=
"admonitionblock">
241 <img src=
"./images/icons/caution.png" alt=
"Caution" />
243 <td class=
"content"><a href=
"http://rails.lighthouseapp.com/projects/16213/tickets/16">Lighthouse Ticket
</a></td>
246 <div class=
"para"><p>This guide covers the find method defined in ActiveRecord::Base, as well as named scopes.
</p></div>
249 <div class=
"sidebarblock">
250 <div class=
"sidebar-content">
251 <div class=
"sidebar-title"><a href=
"layouts_and_rendering.html">Layouts and Rendering in Rails
</a></div>
252 <div class=
"para"><p>This guide covers the basic layout features of Action Controller and Action View,
253 including rendering and redirecting, using
<tt>content_for
</tt> blocks, and working
254 with partials.
</p></div>
256 <div class=
"sidebarblock">
257 <div class=
"sidebar-content">
258 <div class=
"sidebar-title"><a href=
"form_helpers.html">Action View Form Helpers
</a></div>
259 <div class=
"admonitionblock">
262 <img src=
"./images/icons/caution.png" alt=
"Caution" />
264 <td class=
"content"><a href=
"http://rails.lighthouseapp.com/projects/16213/tickets/1">Lighthouse Ticket
</a></td>
267 <div class=
"para"><p>Guide to using built in Form helpers.
</p></div>
270 <div class=
"sidebarblock">
271 <div class=
"sidebar-content">
272 <div class=
"sidebar-title"><a href=
"routing_outside_in.html">Rails Routing from the Outside In
</a></div>
273 <div class=
"para"><p>This guide covers the user-facing features of Rails routing. If you want to
274 understand how to use routing in your own Rails applications, start here.
</p></div>
276 <div class=
"sidebarblock">
277 <div class=
"sidebar-content">
278 <div class=
"sidebar-title"><a href=
"actioncontroller_basics.html">Basics of Action Controller
</a></div>
279 <div class=
"para"><p>This guide covers how controllers work and how they fit into the request cycle in your application. It includes sessions, filters, and cookies, data streaming, and dealing with exceptions raised by a request, among other topics.
</p></div>
281 <div class=
"sidebarblock">
282 <div class=
"sidebar-content">
283 <div class=
"sidebar-title"><a href=
"caching_with_rails.html">Rails Caching
</a></div>
284 <div class=
"admonitionblock">
287 <img src=
"./images/icons/caution.png" alt=
"Caution" />
289 <td class=
"content"><a href=
"http://rails.lighthouseapp.com/projects/16213/tickets/10">Lighthouse Ticket
</a></td>
292 <div class=
"para"><p>This guide covers the three types of caching that Rails provides by default.
</p></div>
294 <h2>Digging Deeper
</h2>
295 <div class=
"sidebarblock">
296 <div class=
"sidebar-content">
297 <div class=
"sidebar-title"><a href=
"testing_rails_applications.html">Testing Rails Applications
</a></div>
298 <div class=
"admonitionblock">
301 <img src=
"./images/icons/caution.png" alt=
"Caution" />
303 <td class=
"content"><a href=
"http://rails.lighthouseapp.com/projects/16213/tickets/8">Lighthouse Ticket
</a></td>
306 <div class=
"para"><p>This is a rather comprehensive guide to doing both unit and functional tests
307 in Rails. It covers everything from
“What is a test?
” to the testing APIs.
310 <div class=
"sidebarblock">
311 <div class=
"sidebar-content">
312 <div class=
"sidebar-title"><a href=
"security.html">Securing Rails Applications
</a></div>
313 <div class=
"para"><p>This guide describes common security problems in web applications and how to
314 avoid them with Rails.
</p></div>
316 <div class=
"sidebarblock">
317 <div class=
"sidebar-content">
318 <div class=
"sidebar-title"><a href=
"debugging_rails_applications.html">Debugging Rails Applications
</a></div>
319 <div class=
"para"><p>This guide describes how to debug Rails applications. It covers the different
320 ways of achieving this and how to understand what is happening
"behind the scenes"
321 of your code.
</p></div>
323 <div class=
"sidebarblock">
324 <div class=
"sidebar-content">
325 <div class=
"sidebar-title"><a href=
"benchmarking_and_profiling.html">Benchmarking and Profiling Rails Applications
</a></div>
326 <div class=
"admonitionblock">
329 <img src=
"./images/icons/caution.png" alt=
"Caution" />
331 <td class=
"content"><a href=
"http://rails.lighthouseapp.com/projects/16213/tickets/4">Lighthouse Ticket
</a></td>
334 <div class=
"para"><p>This guide covers ways to analyze and optimize your running Rails code.
</p></div>
336 <div class=
"sidebarblock">
337 <div class=
"sidebar-content">
338 <div class=
"sidebar-title"><a href=
"creating_plugins.html">The Basics of Creating Rails Plugins
</a></div>
339 <div class=
"para"><p>This guide covers how to build a plugin to extend the functionality of Rails.
</p></div>
341 <div class=
"para"><p>Authors who have contributed to complete guides are listed
<a href=
"authors.html">here
</a>.
</p></div>
342 <div class=
"para"><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>