I wonder where to put data files (for example XML) to be loaded internally by Rails? Is there some standard location? Now I hold the file in "public" folder.
I think that depends on which kind of data you have in your files. If the files are supposed to be loaded at startup, perhaps the config
folder would be good. If they are needed for some backend processing, lib
could be the place. Or just create a data
folder.
There's a table at the end of section 3.2 here with the default folders and their intended purpose.