I currently have a login popup in my header bar which is on every page in my website. I want to be able to reload the current page that the person is on after a successful
In Rails 5 redirect_to :back is improved by:
redirect_to :back
redirect_back(fallback_location: root_path)