Note that there are some explanatory texts on larger screens.

plurals
  1. POLinks with data-remote not firing correctly
    text
    copied!<p>I just switched to jQuery from Prototype in my Rails 3 application. I used the latest Rails.js file for jQuery and v1.4.4 of the core jQuery library. My AJAX forms seem to be working fine, and otherwise things were behaving properly (including my Delete links). The one problem I'm having is with:<br> <code>link_to "Some Page", page_path, :remote =&gt; true</code></p> <p>Nothing seems to happen when I click my links, but the logs show a successful, regular 'GET' cycle completing in the background. All the layouts render (which shouldn't) and all the normal processing takes place. I can't seem to get the damn thing to act remotely. What am I doing wrong?</p> <p>Excerpt from the beginning of my log file: </p> <pre><code>Started GET "/reservations?show=all" for 127.0.0.1 at 2010-12-25 16:08:08 -0500 Processing by ReservationsController#index as */* Parameters: {"show"=&gt;"all"} </code></pre> <p>Any suggestions would be very helpful...</p> <p>Update RE @noodl (1.13.2011): I have an index.js file that does some updating on the page. I have "View All" "View Recent" "View Completed", etc links on the page that filter the index of Reservations. All of this was being handled and working with Prototype. Once I switched to jQuery, nothing seems to happen, and I can't figure out why. This is 3 weeks old now and I still haven't figured it out. Not a high priority (obviously), but still a weird behavior. I'll keep investigating and post a response if I figure anything out.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload