What is the purpose of this Rails config setting…
config.action_controller.consider_all_requests_local = true
It’s set to true by default in config/environments/development.rb.
Thanks,
Ethan
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.
Non-local requests result in user-friendly error pages. Local requests, assumed to come from developers, see a more useful error message that includes line numbers and a backtrace.
consider_all_requests_localallows your app to display these developer-friendly messages even when the machine making the request is remote.