aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-20 12:53:43 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-20 12:53:43 +0200
commitd717468888b9695aaaafd1d79f125023f7810401 (patch)
treea78a3fbf7594423180dac6a46fd28a41c19c3564 /guides
parente7e72aa253d9cb3bef786a955794986d1f3ff871 (diff)
parent09a22db8427aa64d41dac7e72552a2ae2eebad91 (diff)
downloadrails-d717468888b9695aaaafd1d79f125023f7810401.tar.gz
rails-d717468888b9695aaaafd1d79f125023f7810401.tar.bz2
rails-d717468888b9695aaaafd1d79f125023f7810401.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides')
-rw-r--r--guides/source/form_helpers.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/form_helpers.textile b/guides/source/form_helpers.textile
index 8934667c5e..b6420db798 100644
--- a/guides/source/form_helpers.textile
+++ b/guides/source/form_helpers.textile
@@ -89,7 +89,7 @@ form_tag(:controller => "people", :action => "search", :method => "get", :class
# => '<form accept-charset="UTF-8" action="/people/search?method=get&class=nifty_form" method="post">'
</ruby>
-Here, +method+ and +class+ are appended to the query string of the generated URL because you even though you mean to write two hashes, you really only specified one. So you need to tell Ruby which is which by delimiting the first hash (or both) with curly brackets. This will generate the HTML you expect:
+Here, +method+ and +class+ are appended to the query string of the generated URL because even though you mean to write two hashes, you really only specified one. So you need to tell Ruby which is which by delimiting the first hash (or both) with curly brackets. This will generate the HTML you expect:
<ruby>
form_tag({:controller => "people", :action => "search"}, :method => "get", :class => "nifty_form")