[Rails] Re: default form name in form_for

2009-05-30 Thread Conrad Taylor
On Sat, May 30, 2009 at 9:59 AM, JannaB mistressja...@hotmail.com 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



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: default form name in form_for

2009-05-30 Thread JannaB

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

On May 30, 1:39 pm, Conrad Taylor conra...@gmail.com wrote:
 On Sat, May 30, 2009 at 9:59 AM, JannaB mistressja...@hotmail.com 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


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: default form name in form_for

2009-05-30 Thread Mk 27

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.
-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby 
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---