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 => { :suc开发者_开发知识库cess => 'onFormSuccess(request)', :failure => 'onFormFailure(request)' }
Does this not work with form_for?
Are you using jquery? In that case i answered it here :)
精彩评论