title: Rails automatic link_to javascript:void()
body: <p>I know that using <code>:back</code> with <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to" rel="nofollow"><code>link_to</code></a> generates an anchor with <code>javascript:history.back()</code> as its <code>href</code>:</p>
  
  <pre><code>link_to :back, "Go Back!"
  </code></pre>
  
  <p>generates</p>
  
  <pre><code>&lt;a href="javascript:history.back()"&gt;Go Back!&lt;/a&gt;
  </code></pre>
  
  <p>is there any comparable symbol (such as <code>:back</code>) which would generate something like this:</p>
  
  <pre><code>&lt;a href="javascript:void();"&gt;This does nothing!&lt;/a&gt;
  </code></pre>
  
  <p>This can be used in combination with dropdowns.</p>
  
  <p><strong>BTW: I DON'T want to use something as described in this question:</strong></p>
  
  <p><a href="https://stackoverflow.com/questions/12081156/rails-using-link-to-to-make-a-link-without-href">Rails: using link_to to make a link without href</a></p>