When I access a post that doesn\'t exist in my Rails project via the URL /posts/13, the browser shows a verbose error:
/posts/13
ActiveRecord::RecordNotFo
Try this:
run a server in production $ rails s -e production
$ rails s -e production
remove ActionDispatch::DebugExceptions middleware
config.middleware.delete(ActionDispatch::DebugExceptions)
set config.consider_all_requests_local = false in your environment config
config.consider_all_requests_local = false