# Form\_tag options needed

**URL:** <https://www.ruby-forum.com/t/form-tag-options-needed/145156>\
**Category:** Rails\
**Created:** [August 6, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/form-tag-options-needed/145156 "2008-08-06T15:43:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lostwarrior](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Post date:** [August 6, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/form-tag-options-needed/145156/1 "2008-08-06T15:43:22Z")

</div>

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](http://www.google.uk)’}) do %\>  
\<%end%\>

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

---

<div class="post-metadata">

**Author:** ![lostwarrior](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Post date:** [August 6, 2008, 4:09pm UTC](https://www.ruby-forum.com/t/form-tag-options-needed/145156/2 "2008-08-06T16:09:19Z")

</div>

On 6 Aug 2008, at 14:43, Lost W. wrote:

> 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](http://www.google.uk)’) do %\>

should do the trick

---

<div class="post-metadata">

**Author:** ![lostwarrior](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Post date:** [August 6, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/form-tag-options-needed/145156/3 "2008-08-06T17:17:58Z")

</div>

Frederick C. wrote:

> On 6 Aug 2008, at 14:43, Lost W. wrote:
> 
> > 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](http://www.google.uk)’) do %\>
> 
> should do the trick

Thank u Frederick
