2017-11-17 17 views
0
내가 jquery.mobile 버튼을 사용하여 레일을하고 있어요

. (/보기/세션/new.html.erb)이 jquerymobile 버튼에 대한 HREF에서 경로를 레일

난에 노력 하드 코드 경로가 레일 루트 경로로 변경하십시오. 여기서 원래 하드 코드 : 2 차 버튼 예상 enter image description here

대체 문제는 (레이크 루트부터)로 레일 링크 같이

<a href="/password_resets/new" data-role="button" data-icon="info" data-mini="true">Forgotten password?</a> 

내 OK 버튼이다. 버튼 자체가 아니라 "비밀번호 찾기"텍스트에서만 작동합니다. 여기 는 그 코드 :

<div class="actions" data-role="button" data-icon="info" data-mini="true"><%= link_to 'Forgotten password?', new_password_reset_path %></div> 

사용하는 방법은 HREF 내부 경로를 레일?

답변

0

당신이 시도 할 수 :

<%= link_to 'Forgotten password?', new_password_reset_path, data: {icon: 'info', mini: 'true', role: 'button'} %> 
+0

Greate가 작동! href = "/ password_resets/new"에서 href =와 같은 경로를 호출 할 수 있는지 알고 싶습니다. –