title: Converting wrapped anchor tag HTML to link_to
body: <p>I'm messing around with Bootstrap.  There's some HTML code which is wrapped by an anchor tag.  I'm not really sure how to convert it to the Rails <code>link_to</code> method.  I looked at the Ruby on Rails documentation for <code>link_to</code> but I still cannot figure it out.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Dropdown &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I tried the following but it's incorrect:</p>
  
  <pre><code>&lt;% link_to("Users", users_path, { data: { toggle: "dropdown" }, class: "dropdown-toggle"} ) do %&gt;
    &lt;b class="caret"&gt;&lt;/b&gt;
  &lt;% end %&gt;
  </code></pre>