...

/

When Things Go Wrong

When Things Go Wrong

Let’s explore some of the issues that can occur in Rails.

Let’s start by introducing a typo in the source code (highlighted in the below code) that perhaps was introduced by a misfiring autocorrect function in your favorite editor:

Typing
Press + to interact
class SayController < ApplicationController
def hello
@time = Time.know
end
def goodbye
end
end

Demonstration of typos

Run the application provided below to see the typo error.

Bud1
ocblobappIlocblobA.������appbwspblob�bplist00�


]ShowStatusBar[ShowPathbar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds[ShowSidebar		_{{3, 67}, {1437, 808}}	%1=I`myz{|}~��appvSrnlongbabel.config.jsIlocblob�.������binIlocblob.������configIlocblob�.������	config.ruIlocblob�.������dbIlocblobg.������GemfileIlocblobA�������libIlocblob��������package.jsonIlocblob�������postcss.config.jsIlocblob��������publicIlocblob��������RakefileIlocblobg�������storageIlocblobA������testIlocblob�������vendorIlocblob������ @� @� @� @E
DSDB `� @� @� @
This will show the typo errors as discussed above

This is similar to what we saw before, but in place of source code we see a list of possible routes, how they ...