方法
- E
執行個體公開方法
execute() 連結
此方法假設存在一個 ApplicationController
,且它會延伸 ActionController::Base
。
原始碼: 顯示 | 在 GitHub 上
# File railties/lib/rails/commands/console/irb_console.rb, line 24 def execute @controller ||= ApplicationController.new end
此方法假設存在一個 ApplicationController
,且它會延伸 ActionController::Base
。
原始碼: 顯示 | 在 GitHub 上
# File railties/lib/rails/commands/console/irb_console.rb, line 24 def execute @controller ||= ApplicationController.new end