On Thu, Oct 29, 2009 at 6:34 AM, Zied
<khzied-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hi,
>
> I work with forms and i won''t to set a name for a form to use
> javascript functions..
> How can i do
>
>
> Thanks
>
Zied, you can do the following:
<% form_for some_object, :url => { :action => do_something }, :html
=> {
:name => "some_name" } do |form| % >
...
<% end %>
BTW, this information could have been found by going to api.rubyonrails.org.
Good luck,
-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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---