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 wonder where to put data files (for example XML) to be loaded internally
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
configfolder would be good. If they are needed for some backend processing,libcould be the place. Or just create adatafolder.There’s a table at the end of section 3.2 here with the default folders and their intended purpose.