Skip to content

Commit

Permalink
Use relative url for autocompletion request.
Browse files Browse the repository at this point in the history
  • Loading branch information
huerlisi committed Oct 19, 2010
1 parent bd7ca4d commit c9bdd45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/javascripts/application.js
Expand Up @@ -56,7 +56,8 @@ $(".destroy .action").click(function() {
$("input[data-autocomplete]").autocomplete({
source: function( request, response ) {
$.ajax({
url: "http://localhost:3000/answers.json",
// Should use RAILS_ROOT or something...
url: "/answers.json",
dataType: "json",
data: {
per_page: 12,
Expand Down

0 comments on commit c9bdd45

Please sign in to comment.