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 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 (as you would ...
Get Agile Web Development with Rails 5, 1st Edition 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.