title: rails link_to helper - supplying an onclick attribute gets rid of :remote => true (action is processed as HTML)
body: <p>So yeah as the title says, whenever I supply an onclick parameter to my link, it processes the resulting action as HTML in place of JS. Any ideas?</p>
  
  <pre><code>link_to "/profile/share?id=#{post.id}", :id =&gt; "share_#{post.id}", :remote =&gt; true do "stuff" end
  
  link_to "/profile/share?id=#{post.id}", :onclick =&gt; "javascript:$('#share_#{post.id}').text('Loading...')", :id =&gt; "share_#{post.id}", :remote =&gt; true do "stuff" end
  </code></pre>