How to pass a form DOM ID to submit_to_remote, just like with observe_form?

Hi,

I’d like to use submit_to_remote just like observe_form: I want to
supply a DOM ID to submit_to_remote.

I’ve searched around, but I do not see any way to do this. It seems
odd that I shouldn’t be able to use a form DOM ID in something like
submit_to_remote. Any thoughts?

(I’m doing this because I want to allow users to choose when to make
an ajax call from submit_to_remote element that is NOT part of the
form I want to submit.)

Thanks,

Lille

Got it. This can be accomplished by the :submit option described in
the following doc:

http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M002174

Lille