I don't believe there is a cross-browser way to access an XML document on a different domain. The easiest way around this is to set up a small proxy on your server that grabs the data, then simply make an Ajax call to the server.
I've never used Rails, so I don't know exactly what this would look like on the server-side (you'd have to create a separate question for that), but basically you would have it set up so that your server would, upon request, download that XML file and spit it back out as text. The client would then get this XML data using an Ajax request (Google that if you don't know what that is) and manipulate it with JavaScript.
So, assuming you are using jQuery, your domain is www.example.com
, and you have a view called getxml
that gets the XML data and returns it, you'd have something like this in the JavaScript:
$.get('http://www.example.com/getxml', function(xml) {
// Manipulate the `xml` variable here
}, 'xml');
(See jQuery.get() for documentation.)