Handling errors

In the development environment, evebody sees the debugging screen when something goes wrong. In the production environment, you only get a debugging screen, when operating from localhost. But because of the memory leak in the current rails implementation, almost everybody now using production environment, even during the development. Action Controller have a protected method called local_request? to determine if the request is comming from a local host. Add your development machine(s) to it (for example in app/controllers/application.rb):

def local_request?
  [ "127.0.0.1", "192.168.1.123" ].include?(request.remote_ip)
end