If you take a look at your server’s console you will see the error. From what I see, the second argument of the link helper expects a url but you pass an object (I suppose this variable exists otherwise the view with the link wouldn’t render).
in the link_to call, when you only provide a variable, by rails
conventions the object's id value will be used and the show method
will be called.
fyi there were actually two correction I had to make in the javascript
code, in addition to what I mentioned earlier, I also has to change
jQuery method "ajaxSuccess" to use the "on" method like this.