class Amber::Controller::Base

Included Modules

Direct Known Subclasses

Defined in:

amber/controller/base.cr

Constructors

Instance Method Summary

Instance methods inherited from module Amber::Controller::Helpers::I18n

l(*arg) l, t(*arg) t

Instance methods inherited from module Amber::Controller::Helpers::Route

action_name action_name, controller_name controller_name, controller_name_no_underscore controller_name_no_underscore, route_resource route_resource, route_scope route_scope

Instance methods inherited from module Amber::Controller::Helpers::Responders

set_response(body, status_code = 200, content_type = Content::TYPE[:html]) set_response

Instance methods inherited from module Amber::Controller::Helpers::Redirect

redirect_back(**args) redirect_back, redirect_to(controller : Symbol | Class, action : Symbol, **args)
redirect_to(location : String, **args)
redirect_to(action : Symbol, **args)
redirect_to

Instance methods inherited from module Amber::Controller::Helpers::CSRF

csrf_metatag csrf_metatag, csrf_tag csrf_tag, csrf_token csrf_token

Constructor Detail

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

[View source]

Instance Method Detail

def client_ip(*args, **options) #

[View source]
def client_ip(*args, **options, &) #

[View source]
def cookies(*args, **options) #

[View source]
def cookies(*args, **options, &) #

[View source]
def delete?(*args, **options) #

[View source]
def delete?(*args, **options, &) #

[View source]
def filters : Filters #

def filters=(filters : Filters) #

def flash(*args, **options) #

[View source]
def flash(*args, **options, &) #

[View source]
def format(*args, **options) #

[View source]
def format(*args, **options, &) #

[View source]
def get?(*args, **options) #

[View source]
def get?(*args, **options, &) #

[View source]
def halt!(*args, **options) #

[View source]
def halt!(*args, **options, &) #

[View source]
def head?(*args, **options) #

[View source]
def head?(*args, **options, &) #

[View source]
def patch?(*args, **options) #

[View source]
def patch?(*args, **options, &) #

[View source]
def port(*args, **options) #

[View source]
def port(*args, **options, &) #

[View source]
def post?(*args, **options) #

[View source]
def post?(*args, **options, &) #

[View source]
def put?(*args, **options) #

[View source]
def put?(*args, **options, &) #

[View source]
def request(*args, **options) #

[View source]
def request(*args, **options, &) #

[View source]
def requested_url(*args, **options) #

[View source]
def requested_url(*args, **options, &) #

[View source]
def response(*args, **options) #

[View source]
def response(*args, **options, &) #

[View source]
def route(*args, **options) #

[View source]
def route(*args, **options, &) #

[View source]
def run_after_filter(action) #

[View source]
def run_before_filter(action) #

TODO Find a way to make these protected again.


[View source]
def session(*args, **options) #

[View source]
def session(*args, **options, &) #

[View source]
def valve(*args, **options) #

[View source]
def valve(*args, **options, &) #

[View source]
def websocket?(*args, **options) #

[View source]
def websocket?(*args, **options, &) #

[View source]