I never understood why the stylesheets and scripts are outside the /app folder in ruby on rails. Is there benefits of housing them in the /public folder away from the /app?
Thank!
Matt
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.
In production environment,
/appis served by Ruby appserver, i.e mongrel, thin, unicorn, etc, while/publicis served by a webserver that is better in serving static content, i.e nginx. Sometimes you would also want to decouple/publicto be served by a CDN, i.e Amazon S3. Decoupling this two directory provides better deployment arrangement in production environment.