This is the code I have in rails 3.1
<%= link_to \'All\',:action => \"bycategory\", :id => \'All\', :remote => true %>
I hav
You might want to put the :action => "bycategory" and :id => 'All' in a hash as
<%= link_to 'All', { :action => "bycategory", :id => 'All' }, :remote => true %>
This will generate the proper html attribute i.e. data-remote="true" otherwise it will simply treat everything following as an http request attribute. Your code will generate -
All
whereas using the hash will generate something similar to
All