开发者

Rails 3 - form_for and success/failure callbacks

开发者 https://www.devze.com 2023-01-13 18:49 出处:网络
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:

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 :)

0

精彩评论

暂无评论...
验证码 换一张
取 消