I’m having some problem accessing Rails.root from my rails engine, that I’m creating. I need to fetch a yml config file from the main app.
Is there any “best practices” for handling configurations for your engines?
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.
Let’s assume you have a module attribute for that.
Then you can load it from the initialize block like so: