Adding an id to form_tag

Hi all,

When using form_for it is easy to add an id to the form using :html =>
{:id => ‘someid’}

However, how would one accomplish the same when using the form_tag ?

Thank you in advance,
Schalk

On 15 Oct 2008, at 12:56, Schalk N. wrote:

Hi all,

When using form_for it is easy to add an id to the form using :html
=>
{:id => ‘someid’}

However, how would one accomplish the same when using the form_tag ?

pretty much the same form_tag({ url options … }, {:id => ‘someid’})

Fred

Thanks Frederick.