I’m developing user authentication using devise. The sign-in page is like
localhost:3000/users/sign_in. After sign-in successful (a Post request), the user is redirected to home page (localhost:3000/). This is expected, and I do see the home page content loaded in browser.
However, the browser address bar still shows the original request url as localhost:3000/users/sign_in
Any idea why this is happening? Is it devise config thing or is it rails server?
I didn’t have much my own code here, pretty much just hooked up with default devise options for my User model.
Here are part of my routes:
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
root / home#index
Thanks!
Turns out it has sth. to do with my jquery mobile inclusion.
This link here solved my question:
rubyrails using jquery mobile, redirect not change url