开发者

How to refresh web page after closing Model dialog box in rails 2.3.8?

I am developing project on rails and I need to refresh the whole web page when I close a Model dialog box. H开发者_如何学运维ow can I do this on rails.


You can do it with javascript, add hook on modal box closing with something like

location.reload(true)

This will refresh whole page, if you need to refresh just a partial, you should use AJAX GET action.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜