How to cache an xml file and read its attributes in Rails? -


I have a file that represents all the components of the game I want to load the file into boot in the cache, After that, the properties of the files have the ability to call the controllers. I like the simplest XML handling:

 

cobraavesmongos XML_to_hash (File. Open ('path / in / xml'). For your special case, I will add an analyzer, which requires a CVM and the value is set above a constant, which you can access by then Where you want ...

  # config / initializers / load_xml.rb requires' cobravsmongoose 'MY_XML = CobraVsMongoose.xml_to_hash (File.open (' path / to / Xml '). Gets)  

Comments