This one has got me stumped, I have a:
<%= link_to 'Login', users_path %>
That generates the html:
<a href="/users" class="ui-link">Login</a>
And when I click on it, I don’t get a response back from the Server. The address bar shows the correct url, http://localhost:3000/users, but nothing happens. When I click the address bar and hit enter, I get a response and I am directed to the users page.
In my routes.rb, the users entry is simply: resources :users
It also looks like it puts localhost:3000/#/users into the address bar and Chrome removes the #, could that be the cause and why is it putting the hash in there?
I ran Fiddler to see if the http request was being sent and sure enough, both sent to the server.
Can anyone explain this phenomenon? All my links are behaving this way, any help would be appreciated!
Found the answer here: Jquery Mobile all links ignore data-role="none"
You have to use either
rel="external"ordata-ajax="false".