[jQuery] jquery load and get function

[jQuery] jquery load and get function


hi, i've been going through some ajax tutorial, and most of the
tutorial show something like:
(let just say "test.php" and "/test" both return me a string of "hello
world"
$(document).ready(function(){
$("#quote p".load('test.php')
};
);
the load and get function is trying to get the result from test.php
and i got a "hello world", this is ok for CGI style.
then i try to use short/pretty url like, (for example in Rails)
$(document).ready(function(){
$("#quote p".load('/test')
};
);
i suppose it will try to call the test controller in Rails(which will
give me the output "hello world", but i failed to get any output.
Just wonder if anyone has any idea on this?