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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs