Refresh All Information On Back Button Press: Ruby On Rails
My RoR website implements a calendar using the fullcalendar gem. Each user has a calendar that shows the events which he or she is attending. The following scenario sets the stage
Solution 1:
Try adding format.html { redirect_to(@event) }
in the respond to block.
Solution 2:
Reason is you are hitting the back button and the page is taking you to the last page you were at, restoring the state it was at when you left it. Hitting the back button doesn't force a page "reload". What you could is configure the "back" button and force it to instead issue a redirect OR render of the page you want to go to (passing over the parameters if necessary).
There's some new methods introduced in HTML5. It may be helpful and it'd likely fix your problem, but I can't guarantee it will as I have not tried it myself.
https://css-tricks.com/using-the-html5-history-api/
Good luck!
Post a Comment for "Refresh All Information On Back Button Press: Ruby On Rails"