title: Ruby on rails 3: link_to :remote => true treats "remote" as a URL parameter
body: <p>I'd like to know what the link_to syntax is supposed to be for making ajax requests (or other ideas on what might be going wrong here).  Currently I have</p>
  
  <pre><code>&lt;%= form_tag "save_sets", :remote =&gt; true, :name =&gt; "set_form" do %&gt;
  </code></pre>
  
  <p>in a file and it works perfectly.  However, in the very same file, all of</p>
  
  <pre><code>&lt;%= link_to assignment.name, :action =&gt; :view_student_problem_set, :remote =&gt; true %&gt;
  &lt;%= link_to assignment.name, :remote =&gt; true, :action =&gt; :view_student_problem_set %&gt;
  &lt;%= link_to assignment.name, {:action =&gt; :view_student_problem_set, :remote =&gt; true} %&gt;
  &lt;%= link_to assignment.name, {:remote =&gt; true, :action =&gt; :view_student_problem_set} %&gt;
  &lt;%= link_to assignment.name, {:remote =&gt; true}, {:action =&gt; :view_student_problem_set} 
  &lt;%= link_to assignment.name, {:remote =&gt; true}, :action =&gt; :view_student_problem_set %&gt;
  </code></pre>
  
  <p>just produce links with "?remote=true" instead of data-remote="true", and</p>
  
  <pre><code>&lt;%= link_to assignment.name, :remote =&gt; true, {:action =&gt; :view_student_problem_set} %&gt;
  </code></pre>
  
  <p>is apparently a syntax error.</p>
  
  <p>Most of the combinations I have tried are from tutorials, forum posts, and documentation.  I didn't think that collections of symbols had to be in a particular order, but I was just being thorough.  In any event, my googling skills have met their match.</p>
  
  <p>The relevant jquery code, controller code, and whatnot is all identical between the form_tag and the link_to tags.</p>
  
  <p>Thanks and all.</p>