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
 end
 
 def​ ​goodbye
 end
 end

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

images/demo5_2_typo.png

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

Get Agile Web Development with Rails 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.