I’m trying use the form tag(s) to create a named / id’d form. I.e.,
I need to use JS to access the form via the DOM and submit it -
support for a reusable navigation component which will persist app
state on each jump.
However, from reading the form_tag APIs and searching google, I don’t
see where either :name or :id is an option which can be passed into
the form* tags. And having tried a number of permutations for
specifying the additional parameter based on the conventions for
other tags all result in error.
Any thoughts?
Thanks much,
mx.
Michael Xenakis
Architect
Ã?bermind, Inc.
206.290.3362 [email protected]
I struggled with this same problem for a while. The issue, as you say,
is how to specify the DOM id of a form when using the form_tag method.
This is helpful when using things like ‘observe_form’, which requires
the form’s ID.