how to display caret via rails link_to for dropdown in bootstrap
ruby-on-rails, twitter-bootstrap
Solution
Try this, `<%= link_to 'Setup <b class="caret"></b>'.html_safe, root_path, :id => 'setupdrop', :'data-toggle' => 'dropdown', :class => 'dropdown-toggle' %>`
Problem
I want to display the little drop down menu symbol in my rails app that uses twitter bootstrap via the link_to method in my rails app. I can't figure out how to do it. When I add the `<b class="caret"></b>` (that twitter bootstrap uses) to the `'Setup '` argument below, it gets escaped and shows up as text not html. ` <%= link_to 'Setup ', root_path, :id => 'setupdrop', :'data-toggle' => 'dropdown', :class => 'dropdown-toggle' %> ` Of all the rails examples that I have seen so far, none use link_to when using this feature of TBS (and include the caret).