2012-01-16 10 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