abstract class ActionController::Base
inherits Reference
#
Included modules
ActionController::Responders
ActionController::Route::Builder
Constants#
AFTER_MAPPINGS = {} of Nil => Nil
#
klass => {function => options}
AROUND_MAPPINGS = {} of Nil => Nil
#
klass => {function => options}
BEFORE_MAPPINGS = {} of Nil => Nil
#
klass => {function => options}
CONCRETE_CONTROLLERS = {} of Nil => Nil
#
Base route => klass name
CRUD_METHODS = {"index" => {"get", "/", false}, "new" => {"get", "/new", false}, "create" => {"post", "/", false}, "show" => {"get", "/:id", true}, "edit" => {"get", "/:id/edit", true}, "update" => {"patch", "/:id", true}, "replace" => {"put", "/:id", true}, "destroy" => {"delete", "/:id", true}}
#
DEFAULT_PARAM_ID = {} of Nil => Nil
#
Route IDs params
FILTER_TYPES = ["ROUTES", "BEFORE", "AROUND", "AFTER", "RESCUE", "FORCE", "SKIP"] of ::String
#
FORCE_MAPPINGS = {} of Nil => Nil
#
klass => {function => options}
RESCUE_MAPPINGS = {} of Nil => Nil
#
klass => {function => options}
ROUTES_MAPPINGS = {} of Nil => Nil
#
klass => {function => options}
SKIP_MAPPINGS = {} of Nil => Nil
#
klass => {function => options}
TEMPLATE_LAYOUT = {} of Nil => Nil
#
Template support
TEMPLATE_PATH = {ActionController::Base => "./src/views/"} of Nil => Nil
#
Constructors#
.new(context : HTTP::Server::Context, action_name : Symbol = :index, __head_request__ : Bool = false)
#
Class methods#
.extract_params(context : HTTP::Server::Context) : URI::Params
#
Extracts query and route params into a single URI::Params
instance