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
This syntax is what you want... works in Rails 6
respond_to do |format| format.html { redirect_to request.referrer, notice: "User was successfully WHATEVER." } end