开发者

Rails 3 - form_for and success/failure callbacks

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜