abstract class Orma::ModelAction

Direct Known Subclasses

Defined in:

orma/model_action.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class Crumble::Turbo::Action

action_form(**opts) action_form, before_action_halted? before_action_halted?, controller controller, custom_action_trigger(**opts) custom_action_trigger, handle handle, refresh_template refresh_template, uri_path : String uri_path, window_title : String | Nil window_title

Constructor methods inherited from class Crumble::Turbo::Action

new(ctx : Crumble::Server::HandlerContext)
new(request_ctx : Crumble::Server::RequestContext)
new

Class methods inherited from class Crumble::Turbo::Action

handle(ctx) : Bool handle, match_request(ctx) : Regex::MatchData | Nil match_request, matched_handle(ctx, path_match) matched_handle, path_matcher : Regex path_matcher, uri_path : String uri_path

Macros inherited from class Crumble::Turbo::Action

before(&blk) before, controller(&blk) controller, form(&blk) form, view(&blk) view

Constructor Detail

def self.new(ctx : Crumble::Server::HandlerContext, model) #

[View source]
def self.new(request_ctx : Crumble::Server::RequestContext, model) #

[View source]

Class Method Detail

def self.action_name : String #

[View source]
def self.matched_handle(ctx, match) #

[View source]
def self.model_not_found(ctx) #

[View source]
def self.path_matcher : Regex #

[View source]
def self.uri_path(model_id) : String #

[View source]

Macro Detail

macro controller(&blk) #

[View source]
macro view(&blk) #

[View source]

Instance Method Detail

def controller #

[View source]
abstract def model #

[View source]
abstract def model_action_controller #

[View source]
abstract def model_template #

[View source]
def uri_path #

[View source]