[英]Where to store XML files in Rails
I am writing a Ruby on Rails site which loads some data from an "local" XML file which I have. 我正在编写一个Ruby on Rails站点,它从我所拥有的“本地”XML文件中加载一些数据。 Where is a logical place in the rails directory structure to store this file?
rails目录结构中存储此文件的逻辑位置在哪里?
Main question here is for what reason you have that XML files: configuration info or data storage. 这里的主要问题是您拥有XML文件的原因:配置信息或数据存储。 If first - then best place will be congif folder, otherwise - anywhere you like except public folder, you could even create xml folder inside app one.
如果第一-那么最好的地方会congif文件夹,否则-任何你喜欢的,除了公用文件夹 ,你甚至可以建立内部应用程序一个XML文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.