class ApplicationController

Overview

The ApplicationController is the class that handles the environment: it handles the session, request, response, params, flash notices, cookies, redirections, and rendering.

Included Modules

Direct Known Subclasses

Defined in:

controllers/application_controller.cr
controllers/application_controller/cookies.cr
controllers/application_controller/flash.cr
controllers/application_controller/params.cr
controllers/application_controller/redirect.cr
controllers/application_controller/render.cr
controllers/application_controller/request.cr
controllers/application_controller/response.cr
controllers/application_controller/sessions.cr

Constant Summary

LAYOUT = "application.slang"

Constructors

Instance Method Summary

Instance methods inherited from module Wikicr::Helpers::Page

add_page(page, stack = [] of String) add_page, add_toc(index_entry) add_toc, add_toc_level(b, index_entry, current_id = 0, last_head = 0) add_toc_level, create_toc_line(line, current_id, ends = true) create_toc_line

Instance methods inherited from module Wikicr::Helpers::User

set_login_cookies_for(username) set_login_cookies_for, uses_login_cookies uses_login_cookies

Instance methods inherited from module ApplicationController::Redirect

redirect_to(path, *args_to_hanle, **stuff_to_handle) redirect_to

Instance methods inherited from module ApplicationController::Cookies

cookies(*args, **options)
cookies(*args, **options, &)
cookies
, delete_cookie(name) delete_cookie, set_cookie(**cookie) set_cookie

Instance methods inherited from module ApplicationController::Flash

flash(*args, **options)
flash(*args, **options, &)
flash

Instance methods inherited from module ApplicationController::Params

params(*args, **options)
params(*args, **options, &)
params

Instance methods inherited from module ApplicationController::Response

response(*args, **options)
response(*args, **options, &)
response

Instance methods inherited from module ApplicationController::Request

request(*args, **options)
request(*args, **options, &)
request

Instance methods inherited from module ApplicationController::Session

session(*args, **options)
session(*args, **options, &)
session

Constructor Detail

def self.new(env : HTTP::Server::Context) #

[View source]

Instance Method Detail

def env : HTTP::Server::Context #

[View source]