about the link_to_remote

hi,all

i dont know why it does not work as my expection. it always render the 127.0.0.1:3000 (my ror server) ,not the 8080 port.

   <%= link_to_remote 'query now!', {:host=>"127.0.0.1:8080",:controller=>"webgui",:action =>"do_query",:only_path=>"false"},:update=>"result",:complete=>"$ ('queryed')=1"%>

thanks!

why this does not work also??!!

<a complete="$('queryed')=1" href="#" onclick="new Ajax.Request('http://127.0.0.1:3001/webgui/do_query’, {asynchronous:true, evalScripts:true}); return false;" update="result">query now!</a>

FIXed after check rails' sources. thanks!