title: Rails 3 - How to send data on link_to :remote=>true?
body: <p>I am trying to figure out the new <code>link_to</code> in <code>Rails 3</code> but i still don't get it
  In Rails 2 I do:</p>
  
  <pre><code>&lt;%= link_to_remote "My Link",:url=&gt;{:action=&gt;:myaction},:with=&gt;"'data='+$('#someField').attr('value')" %&gt;
  </code></pre>
  
  <p>but with the new syntax in Rails 3 how should it be?</p>
  
  <p>I'm trying something like</p>
  
  <pre><code>&lt;%=link_to "My Link",{:action=&gt;"myaction"},:with=&gt;"'data='+$('#someField').attr('value');",:remote=&gt;true%&gt;
  </code></pre>
  
  <p>but I'm not getting the quantity params in the controller's action</p>