Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I am working in rails using jquery.mobile button.(/view/sessions/new.html.erb)
I have a hard code path which I tried to change to rails routes path.
Here original hard code:
<a href="/password_resets/new" data-role="button" data-icon="info" data-mini="true">Forgotten password?</a>
My button is OK as expected in 2 nd button
The problem when replaced with rails path (from rake routes) is the link. It only work at the text "Forgotten password", not the button itself.
Here that code:
<div class="actions" data-role="button" data-icon="info" data-mini="true"><%= link_to 'Forgotten password?', new_password_reset_path %></div>
How to use rails path inside href?
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.