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
Archonic's answer above worked for me. However, in Rails 3, I had to place this in a respond_to block in order to avoid an 'ArgumentError (too few arguments)' error:
respond_to do |format|
format.js {render inline: "location.reload();" }
end