2012-01-16 3 views

답변

2

내가 찾던 그 대답은 다음과 같이이다 :

%label.wide{:for => "tos_confirmation"} 
    I agree to the 
    %a{:href => "/tos"} Terms of Service 
    and 
    = succeed "." do 
     %a{:href => "/privacy_policy"} Privacy Policy 

내가 부족 유일한 부분도 중요하지 않다 "직원"부분입니다.

+0

모두를 돕기 위해이 html to haml 변환 도구를 확인하십시오. http://html2haml.heroku.com/ – rapidror

2
= link_to employee.label(:tos_confirmation, 
         'I agree to the Terms of Service.', 
         :class => 'wide'), 
      'http://example.com/tos' 
+0

멋지다. "서비스 이용 약관"을 하이퍼 링크로 지정하고 나머지는 텍스트로만 사용하려면 어떻게해야합니까? – rapidror

+0

그건 너의 숙제가 될거야. –

+0

도움 주셔서 감사합니다. – rapidror