How do i get a Form id (Not the action id one)

Hi there.

Im in dire need of some assistance;

I need to give my form this syntax:

The important part here, is the id=“form_id” the rest, i can make by
this code:

<%= form_tag :action => 'some_action %>

Does anyone have som egood idears ?

  • Emil

On 1/28/07, Emil K. [email protected] wrote:

this code:


form_tag( { :action => ‘do_something’ }, { :id => ‘my_id’ } )

Also, if you’re on Rails 1.2 use the block version:

<% form_tag(…) do %>

<% end %>

Hope this helps.

Zack C.

Try posting your question on I got my answer there quite

On Jan 29, 7:39 am, Emil K. [email protected]