Load XML Data into Rails
I'm still a newbie to rails.开发者_StackOverflow This is going to sound dart. I am implementing the JQuery UI autocomplete widget from JQuery UI Autocomplete - XML. I would like to know where and how do I store the XML file.
in the example from the link you posted, it's getting the xml file from the server "london.xml" which is returning xml with fields "name", "countryname" and "geonameId". If you are using rails create a route:
match '/london' => "locations#london" or something (not a very restful or good idea btw), and have the london action return the xml
精彩评论