开发者

Load XML Data into Rails

开发者 https://www.devze.com 2023-03-23 06:04 出处:网络
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

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

精彩评论

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