I've upgraded my app to Rails 3, and in the process I replaced form_remote_tag with form_for. I'm trying to set success and failure callbacks but they aren't working:
:html => { :success => 'onFormSuccess(request)', :failure => 'onFormFailure(request)' }
Does this not work with form_for?