method

controller

controller()
public

Gets a new instance of a controller object.

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