开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜