form_tag options needed

hi i am want to use google search for my application for that how to
write in form_tag

<%form_tag ({},{:action=>'http://www.google.uk'}) do %>
<%end%>

but here it is taking my action & controller of my action .how to write
please help

hi i am want to use google search for my application for that how to
write in form_tag

<%form_tag ({},{:action=>'http://www.google.uk'}) do %>
<%end%>

but here it is taking my action & controller of my action .how to
write
please help

There's an example in the docs that alludes to this. This first
parameter of form_tag is either a set of options
(like :controller, :action etc...) or a complete url.

For example,
<%form_tag ('http://www.google.uk') do %>

should do the trick

Frederick Cheung wrote: