Engine Yard
Engine Yard

Reputation: 41

User-friendly error pages not displaying in production environment

Recently my user friendly error pages stopped displaying for my production environment. I am using rails 3.0.3.

I have the following in my config/environments/production.rb:

config.action_controller.consider_all_requests_local = false

When I start my web server locally using the production environment, the user-friendly error pages display properly.

Has anyone else experienced this?

Upvotes: 4

Views: 1003

Answers (1)

Nicolo77
Nicolo77

Reputation: 1875

I found a fix for this thanks to Scott at EngineYard

I put this at the beginning of my config/environments/production.rb

class ActionDispatch::Request
 def local?
   false
 end
end

Upvotes: 5

Related Questions