title: Rails - link_to helper with data-* attribute
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4258512/best-way-to-use-html5-data-attributes-with-rails-content-tag-helper">Best way to use html5 data attributes with rails content_tag helper?</a>  </p>
  </blockquote>
  
  
  
  <p>How can I use html5 <code>data-*</code> attrubute in my link_to helper (Rails)</p>
  
  <p>The API says that I have to use this format <code>link_to(body, url, html_options = {})</code> but I have an error when I put it in html_options</p>
  
  <p>Ex: </p>
  
  <pre><code>link_to "whatever", @whatever_path, { class: 'my_class', data-tooltip: 'what I want' }
  </code></pre>