method

controller

rails latest stable - Class: Rails::ConsoleMethods
controller()
public

Gets a new instance of a controller object.

This method assumes an ApplicationController exists, and that it extends ActionController::Base.