Reputation: 1954
I am developing project on rails and I need to refresh the whole web page when I close a Model dialog box. How can I do this on rails.
Upvotes: 0
Views: 950
Reputation: 11967
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.
Upvotes: 2