When Things Go Wrong

Let’s start by introducing a typo in the source code—one that perhaps is introduced by a misfiring autocorrect function in your favorite editor:

 class​ SayController < ApplicationController
 def​ hello
» @time = Time.know
 def​ goodbye

Refresh the following page in your browser: http://localhost:3000/say/hello. You should see something like the following screenshot.


For security reasons, the web console is configured to only be shown when accessed from the same machine as the web server is running on. If you are running on a different machine ...

Get Agile Web Development with Rails 5.1 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.