Bug Tracker

Opened 7 years ago

Closed 7 years ago

#6063 closed bug (invalid)

[autocomplete] sub uri path issues

Reported by: plukevdh Owned by:
Priority: Milestone:
Component: ajax Version:
Keywords: autocomplete, plugin, rails Cc:
Blocked by: Blocking:


I'm running jQuery 1.4 with Rails. I have a function like so:

$("#name").autocomplete('autocomplete_name', {

matchContains: true

}).result(function(event, data, formatted) {

$.post('fill_state', {city: formatted}, null, 'script');


Which autocompletes a city name field and then runs a post to a method within Rails to get the autocompleting values back. Once one is selected, it runs a post again to the rails app to fill the state field automatically.

However, I'm running this app in a sub-uri such that app.website.com/rails is the path to my application. When I run the autocomplete method above, it chops the /rails off of the url and the calls cannot be completed because I get a 404 as the url is now incorrect.

Looking over the code now, but figured someone might have more knowledge and save me some time.

Change History (1)

comment:1 Changed 7 years ago by john

  • Resolution set to invalid
  • Status changed from new to closed

Please post plugin issues with the appropriate plugin bug tracker.

Note: See TracTickets for help on using tickets.