Problem with link_to_remote, RJS and jRails

Hi, everyone,

I'm trying to update the content of a div using link_to_remote and RJS
Everything works fine if I use the default Prototype/Scriptaculous
libraries, but I want to use jRails 'coz other parts of my application
use a lot of jQuery.
Here are the steps I done:

1. inside StatesController.rb I defined the following action:
def update_view
  # do nothing just render the default template, in my case a RJS

2. here's the whole update_view.rjs file:
page.insert_html :bottom, 'result_view', "Hello, World!<br/>"

3. inside show.html.haml (I really don't like erb):
= link_to_remote 'update view', :url => { :action => :update_view }

4. here is what I get in log/development.log when using Prototype/
"action"=>"update_view", "controller"=>"states"}

5. here is what I get in log/development.log when using jRails
"action"=>"show", "id"=>"update_view", "controller"=>"states",

The action called is "show" (the current one) instead "update_view".

I know it must be a jRails issue, and should post in jRails list, but
I believe someone here could help me faster.


Going up a level, what url are the two things hitting?


The URL that contains the link_to_remote is http://localhost/states/1
(showing a state)

The generated html for link_to_remote is:

1. for default rails librarires:
<a href="#" onclick="new Ajax.Request('/states/update_view',
{asynchronous:true, evalScripts:true, parameters:'authenticity_token='
+ encodeURIComponent('0b492fd8ce19923563c844fe68d869c45b475b6d')});
return false;">update</a>

2. for jRails:
<a href="#" onclick="$.ajax({data:'authenticity_token=' +
dataType:'script', url:'/states/update_view'}); return false;">update</

both are pointing to same URL: /states/update_view

Did you by chance make a call to jQuery.noconflict() to prevent
Prototype and jQuery from conflicting before you dropped in jRails?