此方法假定存在一个ApplicationController,并且它扩展了ActionController::Base。
ApplicationController
ActionController::Base
来源: 显示 | 在GitHub上
# File railties/lib/rails/commands/console/irb_console.rb, line 24 def execute @controller ||= ApplicationController.new end