From 2db79dc9ea0b623c6d76b72e85f58efd63b50e08 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sun, 9 Sep 2012 17:25:09 +0530 Subject: minor fixes and edits [ci skip] --- guides/source/form_helpers.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source/form_helpers.textile') diff --git a/guides/source/form_helpers.textile b/guides/source/form_helpers.textile index 4415c4d74f..d704b78f83 100644 --- a/guides/source/form_helpers.textile +++ b/guides/source/form_helpers.textile @@ -82,7 +82,7 @@ h4. Multiple Hashes in Form Helper Calls The +form_tag+ helper accepts 2 arguments: the path for the action and an options hash. This hash specifies the method of form submission and HTML options such as the form element's class. -As with the +link_to+ helper, the path argument doesn't have to be given as a string; it can be a hash of URL parameters recognizable by Rails' routing mechanism, which will turn the hash into a valid URL. However, since both arguments to +form_tag+ are hashes, you can easily run into a problem if you would like to specify both. For instance, let's say you write this: +As with the +link_to+ helper, the path argument doesn't have to be a string; it can be a hash of URL parameters recognizable by Rails' routing mechanism, which will turn the hash into a valid URL. However, since both arguments to +form_tag+ are hashes, you can easily run into a problem if you would like to specify both. For instance, let's say you write this: form_tag(:controller => "people", :action => "search", :method => "get", :class => "nifty_form") -- cgit v1.2.3