четверг, 17 апреля 2014 г.

link_to + tags

We could use html tags inside link_to with constructions like this:
 
<%= link_to companies_path, class: "dropdown-toggle", data: { toggle: "dropdown" } do %>
   Link_Name <b class="caret"></b>
<% end %>

Комментариев нет:

Отправить комментарий