Default form name in form_for


#1

Does anyone know the default name given to a form created with
form_for ? Thanks, JB


#2

On Sat, May 30, 2009 at 9:59 AM, JannaB removed_email_address@domain.invalid
wrote:

Does anyone know the default name given to a form created with
form_for ? Thanks, JB

There isn’t a default name attribute generated when you use form_for
helper.

-Conrad


#3

SO…how do you get teh form name for certain Dom / javascript
functionality?


#4

JannaB wrote:

SO…how do you get teh form name for certain Dom / javascript
functionality?

Give the form a name yourself:

form_for […], :html => { name=“adsf”, id=“hjkl” }

See the Rails API.