To enable error page when running production mode locally, you should the settings to inform the server to treat the requests as local. This would enable you to see errors in the browser rather than the default production error page. To enable this, in config/environments/production.rb, temporally change

config.consider_all_requests_local = false

to

config.consider_all_requests_local = true

Source: http://stackoverflow.com/a/11602288/888278