views:

1675

answers:

1

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

+11  A: 

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_local allows your app to display these developer-friendly messages even when the machine making the request is remote.

Gordon Wilson