This code
form_tag(:controller => "people", :action => "search", :method => "get", :class => "nifty_form")
enter the result:
<form accept-charset="UTF-8" action="/people/search?method=get&class=nifty_form" method="post">
But if you use this structure
form_tag({:controller => "people", :action => "search"}, :method => "get", :class => "nifty_form")
you will get the result
<form accept-charset="UTF-8" action="/people/search" method="get" class="nifty_form">
and that is exactly what you want
Kirill Warp Oct 27 '12 at 23:36 2012-10-27 23:36
source share