Does anyone know the default name given to a form created with form_for ? Thanks, JB
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
SO...how do you get teh form name for certain Dom / javascript functionality?
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.