Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 xml 文件并读取此类 xml 文件的内容以查看。我不知道 xml 文件在 rails 框架中的位置在哪里。请建议我在rails框架中xml文件的合适目录在哪里,如何用rails读取xml以及如何将这个xml内容解析为ruby hash?
你可以试试Nokogiri。请参阅此Railscasts视频。