Reputation: 1
So I made consider_all_requests_local to option true in development.rb file.
config.consider_all_requests_local = true
My development and production environments are linked to aibrake debugging system. The problem is when i set consider_all_requests_local as true, I still can't see any errors in my browser. What I get is this: http://postimg.org/image/l9k0zjkwp/
Have any ideas why I can't see errors in my browser?
Upvotes: 0
Views: 1012
Reputation: 106882
true
is already the default in development
mode. You will have to set it to false
, so that Rails considers even local requests to not be local:
config.consider_all_requests_local = false
From the Rails Guide:
config.consider_all_requests_local
is a flag. Iftrue
then any error will cause detailed debugging information to be dumped in the HTTP response, and theRails::Info
controller will show the application runtime context in/rails/info/properties
.true
by default indevelopment
andtest
environments, andfalse
inproduction
mode. For finer-grained control, set this tofalse
and implementlocal_request?
in controllers to specify which requests should provide debugging information on errors.
Upvotes: 1