[Rails] Re: submitting forms help

Mark Reginald James
Mon, 10 Apr 2006 12:41:07 -0000

Manish Shah wrote:
> i had a different idea that i''m trying to get right.  Each sub
form is
> using form_remote_tag to make an ajax call onsubmit. What i did was
> create a javascript function that loops through all the forms and calls
> document.forms [i].submit()

If you''re going to post using AJAX then perhaps you can use
submit_to_remote and its :submit option. This allows you to
specify a div element that encloses the named elements that
you want posted for each submit button.  No need for any forms.

--
We develop, watch us RoR, in numbers too big to ignore.