找不到Rails AJAX获取网址

When doubleClick an element, I'm trying to get a url, then pull the replace the html of #propertiesBox with the contents of that url.

$('.elemContainer').dblclick(function() {

    $.get("/ui/propertiesBox", function(data) {
        $("#propertiesBox").html(data);
        alert("Load was performed.");
    });

});

The url I want to get is views/ui/_propertiesBox.html.erb

You need a route for that url:

#routes
get 'ui/propertiesBox' => 'some_controller#properties_box'

And appropriate action in controller:

#controller 
def properties_box
  render :partial => 'propertiesBox'
end

To make it happen.