title: Rails 3.1 link_to remote => true renders HTML instead of JS, the same code works in some cases
body: <p>This is the code I have in rails 3.1</p>
  
  <pre><code>&lt;%= link_to 'All',:action =&gt; "bycategory", :id =&gt; 'All', :remote =&gt; true %&gt;
  </code></pre>
  
  <p>I have defined a js.erb. This code works perfectly fine  i.e invokes the JS when put in table with a certain CSS. When I just change the table id or put in a unordered list  or anywhere else, it gives me template error as it looks for the html.erb. Just beats me :(.</p>
  
  <p>one thing I found is that in the Params in the first case apart from the id and the remote , it also sends timestamp
  In the second case time stamp is missing. Not sure why this is happening
   Any help will be appreciated, have spent too much time debugging this </p>