Can't modify Application Controller for 'hello world' app
问题 I've stumbled at Chp 1, Listing 1.8 of Hartl's tutorial. The goal is to place a hello action into the Application controller. This is supposed to happen: class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception` def hello render text: "hello, world!" end end Instead, when I put in the first line class ApplicationController < ActionController::Base I get this