alsmola/nopassword — pull request #5 by pgengler (2012-10-13 04:24:02+00:00)
Title: Use 'root_url' when redirecting

When redirecting back to the root, use 'root_url' instead of a hard-coded '/'. The slash does not work as expected when the app isn't running on the root.
For example, if the app is on http://example.com/app/, using `redirect_to '/'` redirects to http://example.com/. Using `redirect_to root_url` redirects to http://example.com/app, which is what you'd expect.