form_for onsubmit

Is there a reason I can’t find any information on using the onsubmit attribute with form_for? I’d hate to gasp hardcode the form tag in.

chad

onsubmit is simply a pass-through attribute -- AFAIK there is no
processing done by Rails. Onsubmit is used to specify a JavaScript
event handler.

-Bill

you can pass e.g., :html => { :method => :get, :onsubmit =>
'blahblah;' } to form_for.

-b