Details displayed on error page

hi all,
whenever there’s an error, that error page displays all the data i.e.
params,session vars,cookie,cache etc to the user. can’t we hide those
details? or is there any other way to handle this? this happens
irrespective of current running environment, development or production.

-DP

On 18 Aug 2008, at 10:06, Dhaval P. wrote:

hi all,
whenever there’s an error, that error page displays all the data
i.e.
params,session vars,cookie,cache etc to the user. can’t we hide those
details? or is there any other way to handle this? this happens
irrespective of current running environment, development or
production.

By default they are hidden in production, unless you’ve chosen
otherwise. Errors are however always shown if your browser is running
on the same machine as the app.

Fred

thanks fred,

By default they are hidden in production, unless you’ve chosen
otherwise.

as i said in my earlier post, it shows those details even if in
production mode. in my environment.rb file, i’ve “ENV[‘RAILS_ENV’] ||=
‘production’”. is thr any other setting needs to be done?

-DP

Are you looking at the pages from the same machine that is serving
them ?

yes, but it happens even if i access those pages from other machines.

the relevant setting is
config.action_controller.consider_all_requests_local

u mean to put this line in environment.rb file, right?

-DP

On 18 Aug 2008, at 11:40, Dhaval P. wrote:

thanks fred,

By default they are hidden in production, unless you’ve chosen
otherwise.

as i said in my earlier post, it shows those details even if in
production mode. in my environment.rb file, i’ve “ENV[‘RAILS_ENV’] ||=
‘production’”. is thr any other setting needs to be done?

Are you looking at the pages from the same machine that is serving
them ?

the relevant setting is
config.action_controller.consider_all_requests_local

Fred

On Mon, Aug 18, 2008 at 7:31 AM, Dhaval P. <
[email protected]> wrote:

u mean to put this line in environment.rb file, right?

The conventional setup is to have the line

config.action_controller.consider_all_requests_local = false

in config/environments/production.rb

and

config.action_controller.consider_all_requests_local = true

in both config/environments/development.rb and
config/environments/test.rb


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

The conventional setup is to have the line

config.action_controller.consider_all_requests_local = false

in config/environments/production.rb

and

config.action_controller.consider_all_requests_local = true

in both config/environments/development.rb and
config/environments/test.rb

thanks Rick, but whatever you mentioned is already there in those files.
still i can see all details on error page. is there any other setting?
i’ve seen many sites those don’t show such details even if there’s an
error and i hope they are developed in RoR :slight_smile:

-DP