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

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?

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

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

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