Which is the best folder to place files that have methods which are not particularly M/V/C. These methods are called at places or in backend process from within the App. Where do I store them? Lib/Scripts/somewhere-else.
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.
Usually such modules are placed in the
lib/ folder and since in Rails 3 modules and classes in thelibfolder aren’t loaded automatically you should addconfig.autoload_paths += %W(#{config.root}/lib)inapplication.rbto make those classes and modules autoloadable.