ฉันใช้สิ่ง Bootstrap ของ Twitter และฉันมี HTML ต่อไปนี้:
<a class="btn" href="<%= user_path(@user) %>"><i class="icon-ok icon-white"></i> Do it@</a>
อะไรคือวิธีที่ดีที่สุดในการทำสิ่งนี้ใน Rails? ฉันอยากจะใช้<%= link_to 'Do it', user_path(@user) %>
แต่<i class="icon-ok icon-white"></i>
มันทำให้ฉันทิ้งไปงั้นเหรอ?
<%= link_to ...
อยู่ในตัวอย่างด้วย block?