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:

Emil,

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.
http://depixelate.com

Try posting your question on refwell.com I got my answer there quite
quickly
Alex

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs