Added 404 and 500 error pages by adding errors_controller.rb and setting config.exceptions_app = self.routes on application.rb. Now you need to add the default routes for the errors. Also added the default config.time_zone = 'Brasilia'.