Hey Guys.
I have got a problem on using the jquery auto-complete plugin.my problem is as the downside.
I am using the ruby on rails framework to develop project.
$().ready(function() {
$("#person_name").focus().autocomplete('show_people', {multiple: false, formatItem: formatItem, width: 290}).result(function(event,item){}
}
this is my javascript code. i am on the page …./conversations/23. but when i use the auto-complete .the code send a request to /conversations/23/show_people. i don’t want it send the request .i want it send the search request to /conversations/show_people.
thank you for your help!
So specify the URL as “/conversations/show_people” instead of just “show_people”