Is there a way to use external XML (or JSON) as a datasource for models in Rails. Eg some models use the database for getting data, others "ping" external services for XML.
您可以使用ActiveResource - 它已经是Rails的一部分,旨在允许您与外部的restful服务集成。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.