public
Description: PLEASE CHECK http://github.com/lifo/docrails/wikis
Homepage: http://weblog.rubyonrails.org/2008/5/2/help-improve-rails-documentation-on-git-branch
Clone URL: git://github.com/lifo/docrails.git
Regen guides
lifo (author)
Wed Jan 07 15:56:02 -0800 2009
commit  582e7c115ed7a0e0ba09821f0f51c895d09519d0
tree    f86765c1921e0d533dd5f23f3643f33ef7d9af7e
parent  c4193d9f8ebb22938786d0d03e82f6b7619a31dc
...
539
540
541
542
 
543
544
545
...
568
569
570
571
 
572
573
574
...
992
993
994
995
 
996
997
998
...
1086
1087
1088
1089
 
1090
1091
1092
...
539
540
541
 
542
543
544
545
...
568
569
570
 
571
572
573
574
...
992
993
994
 
995
996
997
998
...
1086
1087
1088
 
1089
1090
1091
1092
0
@@ -539,7 +539,7 @@ output:
0
   </div>
0
   ...</tt></pre>
0
 </div></div>
0
-<div class="paragraph"><p>When parsing POSTed data, Rails will take into account the special <tt>"_method"</tt> parameter and act as if the HTTP method was the one specified inside it ("PUT" in this example).</p></div>
0
+<div class="paragraph"><p>When parsing POSTed data, Rails will take into account the special <tt>_method</tt> parameter and act as if the HTTP method was the one specified inside it ("PUT" in this example).</p></div>
0
 </div>
0
 <h2 id="_different_families_of_helpers">2. Different Families of helpers</h2>
0
 <div class="sectionbody">
0
@@ -568,7 +568,7 @@ output:
0
 <div class="content">
0
 <pre><tt>&lt;input id="person_name" name="person[name]" type="text" value="Henry"/&gt;</tt></pre>
0
 </div></div>
0
-<div class="paragraph"><p>Upon form submission the value entered by the user will be stored in <tt>params[:person][:name]</tt>. The params[:person] hash is suitable for passing to <tt>Person.new</tt> or, if <tt>@person</tt> is an instance of Person, <tt>@person.update_attributes</tt>.</p></div>
0
+<div class="paragraph"><p>Upon form submission the value entered by the user will be stored in <tt>params[:person][:name]</tt>. The <tt>params[:person]</tt> hash is suitable for passing to <tt>Person.new</tt> or, if <tt>@person</tt> is an instance of Person, <tt>@person.update_attributes</tt>.</p></div>
0
 <div class="admonitionblock">
0
 <table><tr>
0
 <td class="icon">
0
@@ -992,7 +992,7 @@ by Lorenzo Bettini
0
 http://www.lorenzobettini.it
0
 http://www.gnu.org/software/src-highlite -->
0
 <pre><tt><span style="color: #FF0000">{</span><span style="color: #FF0000">'person'</span> <span style="color: #990000">=&gt;</span> <span style="color: #FF0000">{</span><span style="color: #FF0000">'name'</span> <span style="color: #990000">=&gt;</span> <span style="color: #FF0000">'Henry'</span><span style="color: #FF0000">}}</span></tt></pre></div></div>
0
-<div class="paragraph"><p>and &#8216;params['name\&#8217;]` will retrieve the submitted value in the controller.</p></div>
0
+<div class="paragraph"><p>and <tt>params["name"]</tt> will retrieve the submitted value in the controller.</p></div>
0
 <div class="paragraph"><p>Hashes can be nested as many levels as required, for example</p></div>
0
 <div class="listingblock">
0
 <div class="content">
0
@@ -1086,7 +1086,7 @@ http://www.gnu.org/software/src-highlite -->
0
 </div>
0
 <h2 id="_complex_forms">9. Complex forms</h2>
0
 <div class="sectionbody">
0
-<div class="paragraph"><p>Many apps grow beyond simple forms editing a single object. For example when creating a Person instance you might want to allow the user to (on the same form) create multiple address records (home, work etc...). When later editing that person the user should be able to add, remove or amend addresses as necessary. While this guide has shown you all the pieces necessary to handle this, Rails does not yet have a standard end-to-end way of accomplishing this, but many have come up with viable approaches. These include:</p></div>
0
+<div class="paragraph"><p>Many apps grow beyond simple forms editing a single object. For example when creating a Person instance you might want to allow the user to (on the same form) create multiple address records (home, work etc.). When later editing that person the user should be able to add, remove or amend addresses as necessary. While this guide has shown you all the pieces necessary to handle this, Rails does not yet have a standard end-to-end way of accomplishing this, but many have come up with viable approaches. These include:</p></div>
0
 <div class="ulist"><ul>
0
 <li>
0
 <p>

Comments