diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-01-16 04:34:34 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-01-16 04:34:34 +0000 |
commit | ea21b23b92fec1eb5fcc180f8bc054151216538b (patch) | |
tree | ee6e833d61873ef019742809a53e4bc7ab26dca6 /railties/doc/guides/html/routing_outside_in.html | |
parent | 7d2e3ef315489d06e5074c2a7b9b6425aa3e74ce (diff) | |
download | rails-ea21b23b92fec1eb5fcc180f8bc054151216538b.tar.gz rails-ea21b23b92fec1eb5fcc180f8bc054151216538b.tar.bz2 rails-ea21b23b92fec1eb5fcc180f8bc054151216538b.zip |
* Tabs -> Spaces in guides templates
* Move inline css to a file
Diffstat (limited to 'railties/doc/guides/html/routing_outside_in.html')
-rw-r--r-- | railties/doc/guides/html/routing_outside_in.html | 472 |
1 files changed, 152 insertions, 320 deletions
diff --git a/railties/doc/guides/html/routing_outside_in.html b/railties/doc/guides/html/routing_outside_in.html index 0b5ccc1219..22477e18e7 100644 --- a/railties/doc/guides/html/routing_outside_in.html +++ b/railties/doc/guides/html/routing_outside_in.html @@ -1,327 +1,159 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> - <title>Rails Routing from the Outside In</title> - <!--[if lt IE 8]> - <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script> - <![endif]--> - <link href="stylesheets/base.css" media="screen" rel="Stylesheet" type="text/css" /> - <link href="stylesheets/forms.css" media="screen" rel="Stylesheet" type="text/css" /> - <link href="stylesheets/more.css" media="screen" rel="Stylesheet" type="text/css" /> - <style type="text/css"> - div#container { - max-width: 900px; - padding-bottom: 3em; -} - -div#content { - margin-left: 200px; -} - -div#container.notoc { - max-width: 600px; -} - -.notoc div#content { - margin-left: 0; -} - -pre { - line-height: 1.4em; -} - -#content p tt { - background: #eeeeee; - border: solid 1px #cccccc; - padding: 3px; -} - -dt { - font-weight: bold; -} - -#content dt tt { - font-size: 10pt; -} - -dd { - margin-left: 3em; -} - -#content dt tt, #content pre tt { - background: none; - padding: 0; - border: 0; -} - -#content .olist ol { - margin-left: 2em; -} - -#header { - position: relative; - max-width: 840px; - margin-left: auto; - margin-right: auto; -} - -#header.notoc { - max-width: 580px; -} - -#logo { - position: absolute; - left: 10px; - top: 10px; - width: 110px; - height: 140px; -} - -div#header h1#site_title { - background: url('images/ruby_on_rails_by_mike_rundle2.gif') top left no-repeat; - position: absolute; - width: 392px; - height: 55px; - left: 145px; - top: 20px; - margin: 0; - padding: 0; -} - -#site_title span { - display: none; -} - -#site_title_tagline { - display: none; -} - -ul#navMain { - position: absolute; - margin: 0; - padding: 0; - top: 97px; - left: 145px; -} - -.left-floaty, .right-floaty { - padding: 15px; -} - -.admonitionblock, -.tableblock { - margin-left: 1em; - margin-right: 1em; - margin-top: 0.25em; - margin-bottom: 1em; -} - -.admonitionblock .icon { - padding-right: 8px; -} - -.admonitionblock .content { - border: solid 1px #ffda78; - background: #fffebd; - padding: 10px; - padding-top: 8px; - padding-bottom: 8px; -} - -.admonitionblock .title { - font-size: 140%; - margin-bottom: 0.5em; -} - -.tableblock table { - border: solid 1px #aaaaff; - background: #f0f0ff; -} - -.tableblock th { - background: #e0e0e0; -} - -.tableblock th, -.tableblock td { - padding: 3px; - padding-left: 5px; - padding-right: 5px; -} - -.sidebarblock { - margin-top: 0.25em; - margin: 1em; - border: solid 1px #ccccbb; - padding: 8px; - background: #ffffe0; -} - -.sidebarblock .sidebar-title { - font-size: 140%; - font-weight: 600; - margin-bottom: 0.3em; -} - -.sidebarblock .sidebar-content > .para:last-child > p { - margin-bottom: 0; -} - -.sidebarblock .sidebar-title a { - text-decoration: none; -} - -.sidebarblock .sidebar-title a:hover { - text-decoration: underline; -} - - </style> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + <title>Rails Routing from the Outside In</title> + <!--[if lt IE 8]> + <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script> + <![endif]--> + <link href="stylesheets/base.css" media="screen" rel="Stylesheet" type="text/css" /> + <link href="stylesheets/forms.css" media="screen" rel="Stylesheet" type="text/css" /> + <link href="stylesheets/more.css" media="screen" rel="Stylesheet" type="text/css" /> </head> <body> - <div id="header" > - <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> - - <h1 id="site_title"><span>Ruby on Rails</span></h1> - <h2 id="site_title_tagline">Sustainable productivity for web-application development</h2> + <div id="header" > + <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> + + <h1 id="site_title"><span>Ruby on Rails</span></h1> + <h2 id="site_title_tagline">Sustainable productivity for web-application development</h2> - <ul id="navMain"> - <li class="first-child"><a href="http://www.rubyonrails.org/" title="Ruby on Rails" class="ruby_on_rails">Ruby on Rails</a></li> - <li><a class="manuals" href="index.html" title="Manuals Index">Guides Index</a></li> - </ul> - </div> + <ul id="navMain"> + <li class="first-child"><a href="http://www.rubyonrails.org/" title="Ruby on Rails" class="ruby_on_rails">Ruby on Rails</a></li> + <li><a class="manuals" href="index.html" title="Manuals Index">Guides Index</a></li> + </ul> + </div> - <div id="container"> - - <div id="sidebar"> - <h2>Chapters</h2> - <ol> - <li> - <a href="#_the_dual_purpose_of_routing">The Dual Purpose of Routing</a> - <ul> - - <li><a href="#_connecting_urls_to_code">Connecting URLs to Code</a></li> - - <li><a href="#_generating_urls_from_code">Generating URLs from Code</a></li> - - </ul> - </li> - <li> - <a href="#_quick_tour_of_routes_rb">Quick Tour of Routes.rb</a> - <ul> - - <li><a href="#_processing_the_file">Processing the File</a></li> - - <li><a href="#_restful_routes">RESTful Routes</a></li> - - <li><a href="#_named_routes">Named Routes</a></li> - - <li><a href="#_nested_routes">Nested Routes</a></li> - - <li><a href="#_regular_routes">Regular Routes</a></li> - - <li><a href="#_default_routes">Default Routes</a></li> - - </ul> - </li> - <li> - <a href="#_restful_routing_the_rails_default">RESTful Routing: the Rails Default</a> - <ul> - - <li><a href="#_what_is_rest">What is REST?</a></li> - - <li><a href="#_crud_verbs_and_actions">CRUD, Verbs, and Actions</a></li> - - <li><a href="#_urls_and_paths">URLs and Paths</a></li> - - <li><a href="#_defining_multiple_resources_at_the_same_time">Defining Multiple Resources at the Same Time</a></li> - - <li><a href="#_singular_resources">Singular Resources</a></li> - - <li><a href="#_customizing_resources">Customizing Resources</a></li> - - <li><a href="#_controller_namespaces_and_routing">Controller Namespaces and Routing</a></li> - - <li><a href="#_nested_resources">Nested Resources</a></li> - - <li><a href="#_route_generation_from_arrays">Route Generation from Arrays</a></li> - - <li><a href="#_namespaced_resources">Namespaced Resources</a></li> - - <li><a href="#_adding_more_restful_actions">Adding More RESTful Actions</a></li> - - </ul> - </li> - <li> - <a href="#_regular_routes_2">Regular Routes</a> - <ul> - - <li><a href="#_bound_parameters">Bound Parameters</a></li> - - <li><a href="#_wildcard_components">Wildcard Components</a></li> - - <li><a href="#_static_text">Static Text</a></li> - - <li><a href="#_querystring_parameters">Querystring Parameters</a></li> - - <li><a href="#_defining_defaults">Defining Defaults</a></li> - - <li><a href="#_named_routes_2">Named Routes</a></li> - - <li><a href="#_route_requirements">Route Requirements</a></li> - - <li><a href="#_route_conditions">Route Conditions</a></li> - - <li><a href="#_route_globbing">Route Globbing</a></li> - - <li><a href="#_route_options">Route Options</a></li> - - </ul> - </li> - <li> - <a href="#_formats_and_respond_to">Formats and respond_to</a> - <ul> - - <li><a href="#_specifying_the_format_with_an_http_header">Specifying the Format with an HTTP Header</a></li> - - <li><a href="#_recognized_mime_types">Recognized MIME types</a></li> - - </ul> - </li> - <li> - <a href="#_the_default_routes">The Default Routes</a> - </li> - <li> - <a href="#_the_empty_route">The Empty Route</a> - <ul> - - <li><a href="#_using_map_root">Using map.root</a></li> - - <li><a href="#_connecting_the_empty_string">Connecting the Empty String</a></li> - - </ul> - </li> - <li> - <a href="#_inspecting_and_testing_routes">Inspecting and Testing Routes</a> - <ul> - - <li><a href="#_seeing_existing_routes_with_rake">Seeing Existing Routes with rake</a></li> - - <li><a href="#_testing_routes">Testing Routes</a></li> - - </ul> - </li> - <li> - <a href="#_changelog">Changelog</a> - </li> - </ol> - </div> - - <div id="content"> - <h1>Rails Routing from the Outside In</h1> - <div id="preamble">
+ <div id="container"> + + <div id="sidebar"> + <h2>Chapters</h2> + <ol> + <li> + <a href="#_the_dual_purpose_of_routing">The Dual Purpose of Routing</a> + <ul> + + <li><a href="#_connecting_urls_to_code">Connecting URLs to Code</a></li> + + <li><a href="#_generating_urls_from_code">Generating URLs from Code</a></li> + + </ul> + </li> + <li> + <a href="#_quick_tour_of_routes_rb">Quick Tour of Routes.rb</a> + <ul> + + <li><a href="#_processing_the_file">Processing the File</a></li> + + <li><a href="#_restful_routes">RESTful Routes</a></li> + + <li><a href="#_named_routes">Named Routes</a></li> + + <li><a href="#_nested_routes">Nested Routes</a></li> + + <li><a href="#_regular_routes">Regular Routes</a></li> + + <li><a href="#_default_routes">Default Routes</a></li> + + </ul> + </li> + <li> + <a href="#_restful_routing_the_rails_default">RESTful Routing: the Rails Default</a> + <ul> + + <li><a href="#_what_is_rest">What is REST?</a></li> + + <li><a href="#_crud_verbs_and_actions">CRUD, Verbs, and Actions</a></li> + + <li><a href="#_urls_and_paths">URLs and Paths</a></li> + + <li><a href="#_defining_multiple_resources_at_the_same_time">Defining Multiple Resources at the Same Time</a></li> + + <li><a href="#_singular_resources">Singular Resources</a></li> + + <li><a href="#_customizing_resources">Customizing Resources</a></li> + + <li><a href="#_controller_namespaces_and_routing">Controller Namespaces and Routing</a></li> + + <li><a href="#_nested_resources">Nested Resources</a></li> + + <li><a href="#_route_generation_from_arrays">Route Generation from Arrays</a></li> + + <li><a href="#_namespaced_resources">Namespaced Resources</a></li> + + <li><a href="#_adding_more_restful_actions">Adding More RESTful Actions</a></li> + + </ul> + </li> + <li> + <a href="#_regular_routes_2">Regular Routes</a> + <ul> + + <li><a href="#_bound_parameters">Bound Parameters</a></li> + + <li><a href="#_wildcard_components">Wildcard Components</a></li> + + <li><a href="#_static_text">Static Text</a></li> + + <li><a href="#_querystring_parameters">Querystring Parameters</a></li> + + <li><a href="#_defining_defaults">Defining Defaults</a></li> + + <li><a href="#_named_routes_2">Named Routes</a></li> + + <li><a href="#_route_requirements">Route Requirements</a></li> + + <li><a href="#_route_conditions">Route Conditions</a></li> + + <li><a href="#_route_globbing">Route Globbing</a></li> + + <li><a href="#_route_options">Route Options</a></li> + + </ul> + </li> + <li> + <a href="#_formats_and_respond_to">Formats and respond_to</a> + <ul> + + <li><a href="#_specifying_the_format_with_an_http_header">Specifying the Format with an HTTP Header</a></li> + + <li><a href="#_recognized_mime_types">Recognized MIME types</a></li> + + </ul> + </li> + <li> + <a href="#_the_default_routes">The Default Routes</a> + </li> + <li> + <a href="#_the_empty_route">The Empty Route</a> + <ul> + + <li><a href="#_using_map_root">Using map.root</a></li> + + <li><a href="#_connecting_the_empty_string">Connecting the Empty String</a></li> + + </ul> + </li> + <li> + <a href="#_inspecting_and_testing_routes">Inspecting and Testing Routes</a> + <ul> + + <li><a href="#_seeing_existing_routes_with_rake">Seeing Existing Routes with rake</a></li> + + <li><a href="#_testing_routes">Testing Routes</a></li> + + </ul> + </li> + <li> + <a href="#_changelog">Changelog</a> + </li> + </ol> + </div> + + <div id="content"> + <h1>Rails Routing from the Outside In</h1> + <div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p>This guide covers the user-facing features of Rails routing. By referring to this guide, you will be able to:</p></div>
<div class="ulist"><ul>
@@ -1518,7 +1350,7 @@ http://www.gnu.org/software/src-highlite --> <span style="color: #990000">:</span>conditions <span style="color: #990000">=></span> <span style="color: #FF0000">{</span> <span style="color: #990000">:</span>method <span style="color: #990000">=></span> <span style="color: #990000">:</span>get <span style="color: #FF0000">}</span></tt></pre></div></div>
<div class="paragraph"><p>As with conditions in RESTful routes, you can specify <tt>:get</tt>, <tt>:post</tt>, <tt>:put</tt>, <tt>:delete</tt>, or <tt>:any</tt> for the acceptable method.</p></div>
<h3 id="_route_globbing">4.9. Route Globbing</h3>
-<div class="paragraph"><p>Route globbing is a way to specify that a particular parameter (which must be the last parameter in the route) should be matched to all the remaining parts of a route. For example</p></div>
+<div class="paragraph"><p>Route globbing is a way to specify that a particular parameter should be matched to all the remaining parts of a route. For example</p></div>
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 2.9
by Lorenzo Bettini
@@ -1753,7 +1585,7 @@ September 10, 2008: initial version by <a href="../authors.html#mgunderloy">Mike </ul></div>
</div>
- </div> - </div> + </div> + </div> </body> </html> |