Topic: link_to_remote helper messed up?

Hi,

I have used "link_to_remote" helper quite many times as like:-
<%= link_to_remote "Q1",      :url => { :controller => "", :action =>
"", :year => 2012 }, :update => 'div_name' %> which is having source
as:-
<a onclick="new Ajax.Updater('div_name', '/controller/action?year=2012',
{asynchronous:true, evalScripts:true}); return false;" href="#">«</a>


Today also i used the same syntax and semantic, but surprised to see
that same helper is giving me different source as:- <a
onclick="jQuery.ajax({data:'',
success:function(request){jQuery('div_name').html(request);},
type:'post', url:'/controller/action?year=2012'}); return false;"
href="#">Q1</a>


I wondered how it came though and came to know that it is a matter of
conflicting jquery and prototype. But do not know how to resolved it as
i am using this:-
<%= javascript_include_tag :all, :recursive => true %>


Do you guys(Rubyities) have anything to give for this?

- Hemant Bhargava

Last edited by hemant.bhargava7 (2012-01-12 03:23:25)