Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionController / Base

Class: Base ​

Defined in: packages/actionpack/lib/action-controller/base.ts:306

Extends ​

Constructors ​

Constructor ​

new Base(): Base

Defined in: packages/actionpack/lib/action-controller/base.ts:494

Returns ​

Base

Invented Arm ​

if — PERMANENT

Inlined From ​

ActiveRecord::Railties::ControllerRuntime#initialize rails/v8.0.5.2/activerecord/lib/active_record/railties/controller_runtime.rb:26-29

Inlined From ​

ActionController::Instrumentation#initialize rails/v8.0.5.2/actionpack/lib/action_controller/metal/instrumentation.rb:23-26

Inlined From ​

ActionController::RequestForgeryProtection#initialize rails/v8.0.5.2/actionpack/lib/action_controller/metal/request_forgery_protection.rb:366-369

Inlined From ​

ActionView::Layouts#initialize rails/v8.0.5.2/actionview/lib/action_view/layouts.rb:361-364

Inlined From ​

ActionView::Rendering#initialize rails/v8.0.5.2/actionview/lib/action_view/rendering.rb:32-35

Inlined From ​

ActionController::UrlFor#initialize rails/v8.0.5.2/actionpack/lib/action_controller/metal/url_for.rb:32-35

Inlined From ​

ActionDispatch::Routing::UrlFor#initialize rails/v8.0.5.2/actionpack/lib/action_dispatch/routing/url_for.rb:111-114

Inherited from ​

Metal.constructor

Properties ​

_actionName ​

_actionName: string = ""

Defined in: packages/actionpack/lib/abstract-controller/base.ts:66

Inherited from ​

Metal._actionName


_computeRedirectToLocation ​

_computeRedirectToLocation: { }

Defined in: packages/actionpack/lib/action-controller/base.ts:337


_formats ​

protected _formats: unknown = null

Defined in: packages/actionpack/lib/abstract-controller/base.ts:84

Inherited from ​

Metal._formats


_helpers ​

readonly _helpers: object & BaseHelpers

Defined in: packages/actionpack/lib/action-controller/base.ts:415


_isWrapperOptions ​

_isWrapperOptions: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:580


_params ​

_params: Record<string, unknown> | Parameters | null = null

Defined in: packages/actionpack/lib/action-controller/metal.ts:129

Inherited from ​

Metal._params


_renderToBodyWithRenderer ​

_renderToBodyWithRenderer: (this, options) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:635

Parameters ​

ParameterType
thisRenderersHost
optionsRecord<string, unknown>

Returns ​

unknown


_request ​

_request: Request

Defined in: packages/actionpack/lib/action-controller/metal.ts:127

Inherited from ​

Metal._request


_response ​

_response: Response

Defined in: packages/actionpack/lib/action-controller/metal.ts:128

Inherited from ​

Metal._response


_responseBody ​

protected _responseBody: unknown = null

Defined in: packages/actionpack/lib/abstract-controller/base.ts:75

Inherited from ​

Metal._responseBody


_wrapperOptions ​

_wrapperOptions: ParamsWrapperOptions

Defined in: packages/actionpack/lib/action-controller/base.ts:578


alert ​

readonly alert: unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:515


allowForgeryProtection ​

allowForgeryProtection: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:338


appendViewPath ​

appendViewPath: (path) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:478

Parameters ​

ParameterType
pathViewPathsInput

Returns ​

void


authenticateOrRequestWithHttpBasic ​

authenticateOrRequestWithHttpBasic: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:85

Parameters ​

ParameterType
...args[string | null, string | null, (userName, password) => unknown]

Returns ​

unknown

Inherited from ​

Included.authenticateOrRequestWithHttpBasic


authenticateOrRequestWithHttpDigest ​

authenticateOrRequestWithHttpDigest: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:162

Parameters ​

ParameterType
...args[string, string | null, (username) => string | null | undefined]

Returns ​

Promise

Inherited from ​

Included.authenticateOrRequestWithHttpDigest


authenticateOrRequestWithHttpToken ​

authenticateOrRequestWithHttpToken: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:367

Parameters ​

ParameterType
...args[string, string | null, (token, options) => unknown]

Returns ​

unknown

Inherited from ​

Included.authenticateOrRequestWithHttpToken


authenticateWithHttpBasic ​

authenticateWithHttpBasic: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:97

Parameters ​

ParameterType
...args[(userName, password) => unknown]

Returns ​

unknown

Inherited from ​

Included.authenticateWithHttpBasic


authenticateWithHttpDigest ​

authenticateWithHttpDigest: (...args) => boolean | undefined

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:174

Parameters ​

ParameterType
...args[string, (username) => string | null | undefined]

Returns ​

boolean | undefined

Inherited from ​

Included.authenticateWithHttpDigest


authenticateWithHttpToken ​

authenticateWithHttpToken: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:379

Parameters ​

ParameterType
...args[(token, options) => unknown]

Returns ​

unknown

Inherited from ​

Included.authenticateWithHttpToken


cache ​

cache: {<T>(this, key, options, block): Promise<T>; <T>(this, key, block): Promise<T>; }

Defined in: packages/actionpack/lib/action-controller/base.ts:656

Call Signature ​

<T>(this, key, options, block): Promise<T>

Type Parameters ​
Type Parameter
T
Parameters ​
ParameterType
thisCachingHost
keyunknown
optionsCacheOptions
block() => T
Returns ​

Promise<T>

Call Signature ​

<T>(this, key, block): Promise<T>

Type Parameters ​
Type Parameter
T
Parameters ​
ParameterType
thisCachingHost
keyunknown
block() => T
Returns ​

Promise<T>


clearInstanceVariablesBetweenRequests ​

clearInstanceVariablesBetweenRequests: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/testing.ts:27

Parameters ​

ParameterType
...args[]

Returns ​

void

Inherited from ​

Metal.clearInstanceVariablesBetweenRequests


combinedFragmentCacheKey ​

combinedFragmentCacheKey: (this, key) => unknown[]

Defined in: packages/actionpack/lib/action-controller/base.ts:657

Parameters ​

ParameterType
thisFragmentsHost
keyunknown

Returns ​

unknown[]


commitCsrfToken ​

commitCsrfToken: (this, request) => Promise<void>

Defined in: packages/actionpack/lib/action-controller/base.ts:341

Parameters ​

ParameterType
this{ csrfTokenStorageStrategy?: CsrfTokenStorage; }
this.csrfTokenStorageStrategy?CsrfTokenStorage
requestCsrfRequest

Returns ​

Promise<void>


csrfTokenStorageStrategy ​

csrfTokenStorageStrategy: CsrfTokenStorage

Defined in: packages/actionpack/lib/action-controller/base.ts:339


defaultFormBuilder ​

defaultFormBuilder: () => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:562

Returns ​

unknown


defaultRender ​

defaultRender: { }

Defined in: packages/actionpack/lib/action-controller/base.ts:482


defaultUrlOptions ​

defaultUrlOptions: Record<string, unknown>

Defined in: packages/actionpack/lib/action-controller/base.ts:672


detailsForLookup ​

detailsForLookup: (this) => Record<string, DetailValue>

Defined in: packages/actionpack/lib/action-controller/base.ts:474

Parameters ​

ParameterType
thisViewPaths

Returns ​

Record<string, DetailValue>


etaggers ​

etaggers: Etagger[]

Defined in: packages/actionpack/lib/action-controller/base.ts:400


etagWithTemplateDigest ​

etagWithTemplateDigest: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:404


expireFragment ​

expireFragment: (this, key, options?) => Promise<unknown>

Defined in: packages/actionpack/lib/action-controller/base.ts:661

Parameters ​

ParameterType
thisFragmentsHost
keyunknown
options?CacheOptions

Returns ​

Promise<unknown>


expiresIn ​

expiresIn: (this, seconds, options) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:600

Parameters ​

ParameterType
thisConditionalGetHost
secondsnumber | Duration
optionsRecord<string, unknown>

Returns ​

void


expiresNow ​

expiresNow: (this) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:601

Parameters ​

ParameterType
thisConditionalGetHost

Returns ​

void


flash ​

readonly flash: Promise<FlashHash>

Defined in: packages/actionpack/lib/action-controller/base.ts:350


fragmentExist ​

fragmentExist: (this, key, options?) => Promise<boolean | null | undefined>

Defined in: packages/actionpack/lib/action-controller/base.ts:660

Parameters ​

ParameterType
thisFragmentsHost
keyunknown
options?CacheOptions

Returns ​

Promise<boolean | null | undefined>


freshWhen ​

freshWhen: (this, object, __namedParameters) => Promise<void>

Defined in: packages/actionpack/lib/action-controller/base.ts:598

Parameters ​

ParameterTypeDefault value
thisConditionalGetHostundefined
objectunknownnull
__namedParametersFreshWhenOptions{}

Returns ​

Promise<void>


handlerForRescue ​

handlerForRescue: (...args) => ((e) => unknown) | null

Defined in: packages/actionpack/lib/action-controller/base.ts:688

Parameters ​

ParameterType
...args[unknown]

Returns ​

((e) => unknown) | null


head: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/base.ts:606

Parameters ​

ParameterType
...args[string | number | false | null, Record<string, unknown> | null]

Returns ​

Promise


httpBasicAuthenticateOrRequestWith ​

httpBasicAuthenticateOrRequestWith: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:63

Parameters ​

ParameterType
...args[{ message?: string | null; name: string; password: string; realm?: string | null; }]

Returns ​

unknown

Inherited from ​

Included.httpBasicAuthenticateOrRequestWith


httpCacheForever ​

httpCacheForever: (this, __namedParameters, block?) => Promise<void>

Defined in: packages/actionpack/lib/action-controller/base.ts:602

Parameters ​

ParameterType
thisConditionalGetHost
__namedParameters{ public?: boolean; }
__namedParameters.public?boolean
block?() => unknown

Returns ​

Promise<void>


isActionHasLayout ​

isActionHasLayout: (this) => boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:638

Parameters ​

ParameterType
thisLayouts

Returns ​

boolean


isAnyTemplates ​

isAnyTemplates: (this, name, prefixes?, partial?) => boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:480

Parameters ​

ParameterType
thisViewPaths
namestring
prefixes?readonly string[]
partial?boolean

Returns ​

boolean


isEtaggers ​

isEtaggers: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:401


isEtagWithTemplateDigest ​

isEtagWithTemplateDigest: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:405


isMiddlewareStack ​

isMiddlewareStack: boolean

Defined in: packages/actionpack/lib/action-controller/metal.ts:111

Inherited from ​

Metal.isMiddlewareStack


isShowDetailedExceptions ​

isShowDetailedExceptions: () => boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:685

Returns ​

boolean


isStale ​

isStale: (this, object, freshnessKwargs) => Promise<boolean>

Defined in: packages/actionpack/lib/action-controller/base.ts:599

Parameters ​

ParameterTypeDefault value
thisConditionalGetHostundefined
objectunknownnull
freshnessKwargsFreshWhenOptions{}

Returns ​

Promise<boolean>


l ​

l: (...args) => string

Defined in: packages/actionpack/lib/action-controller/base.ts:512

Parameters ​

ParameterType
...args[unknown, LocalizeOptions]

Returns ​

string


locale ​

locale: string | null

Defined in: packages/actionpack/lib/action-controller/base.ts:476


localize ​

localize: (...args) => string

Defined in: packages/actionpack/lib/action-controller/base.ts:511

Parameters ​

ParameterType
...args[unknown, LocalizeOptions]

Returns ​

string


lookupContext ​

readonly lookupContext: LookupContext

Defined in: packages/actionpack/lib/action-controller/base.ts:473


middlewareStack ​

middlewareStack: MiddlewareStack

Defined in: packages/actionpack/lib/action-controller/metal.ts:110

Inherited from ​

Metal.middlewareStack


noStore ​

noStore: (this) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:603

Parameters ​

ParameterType
thisConditionalGetHost

Returns ​

void


notice ​

readonly notice: unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:514


prependViewPath ​

prependViewPath: (path) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:479

Parameters ​

ParameterType
pathViewPathsInput

Returns ​

void


readFragment ​

readFragment: (this, key, options?) => Promise<unknown>

Defined in: packages/actionpack/lib/action-controller/base.ts:659

Parameters ​

ParameterType
thisFragmentsHost
keyunknown
options?CacheOptions

Returns ​

Promise<unknown>


recycleBang ​

recycleBang: (...args) => void

Defined in: packages/actionpack/lib/action-controller/metal/testing.ts:27

Parameters ​

ParameterType
...args[]

Returns ​

void

Inherited from ​

Metal.recycleBang


redirectBack ​

redirectBack: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:334

Parameters ​

ParameterType
...args[{ allowOtherHost?: boolean; fallbackLocation: string; } & Record<string, unknown>]

Returns ​

unknown


redirectBackOrTo ​

redirectBackOrTo: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:335

Parameters ​

ParameterType
...args[string, { allowOtherHost?: boolean; } & Record<string, unknown>?]

Returns ​

unknown


renderedFormat ​

renderedFormat: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:628

Parameters ​

ParameterType
...args[]

Returns ​

unknown


requestHttpBasicAuthentication ​

requestHttpBasicAuthentication: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:104

Parameters ​

ParameterType
...args[string, string | null]

Returns ​

Promise

Inherited from ​

Included.requestHttpBasicAuthentication


requestHttpDigestAuthentication ​

requestHttpDigestAuthentication: (...args) => Promise

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:182

Parameters ​

ParameterType
...args[string, string | null]

Returns ​

Promise

Inherited from ​

Included.requestHttpDigestAuthentication


requestHttpTokenAuthentication ​

requestHttpTokenAuthentication: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/metal/http-authentication.ts:386

Parameters ​

ParameterType
...args[string, string | null]

Returns ​

unknown

Inherited from ​

Included.requestHttpTokenAuthentication


rescueWithHandler ​

rescueWithHandler: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:687

Parameters ​

ParameterType
...args[unknown]

Returns ​

unknown


resetCsrfToken ​

resetCsrfToken: (this, request) => Promise<void>

Defined in: packages/actionpack/lib/action-controller/base.ts:340

Parameters ​

ParameterType
this{ csrfTokenStorageStrategy?: CsrfTokenStorage; }
this.csrfTokenStorageStrategy?CsrfTokenStorage
requestCsrfRequest

Returns ​

Promise<void>


respondTo ​

respondTo: (...mimes) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:507

Parameters ​

ParameterType
...mimes(string | ((collector) => void))[]

Returns ​

unknown


sendData ​

sendData: (this, data, options) => void | Promise<void>

Defined in: packages/actionpack/lib/action-controller/base.ts:684

Parameters ​

ParameterType
thisDataStreamingHost
datastring | Uint8Array<ArrayBufferLike>
optionsSendDataOptions

Returns ​

void | Promise<void>


sendFile ​

sendFile: (this, path, options) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:683

Parameters ​

ParameterType
thisDataStreamingHost
pathstring
optionsSendFileOptions

Returns ​

void


t ​

t: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:510

Parameters ​

ParameterType
...args[string | null, TranslateOptions]

Returns ​

unknown


templateExists ​

templateExists: (this, name, prefixes?, partial?, keys?, options?) => boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:477

Parameters ​

ParameterType
thisViewPaths
namestring
prefixes?readonly string[]
partial?boolean
keys?readonly string[]
options?Record<string, DetailValue>

Returns ​

boolean


translate ​

translate: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:509

Parameters ​

ParameterType
...args[string | null, TranslateOptions]

Returns ​

unknown


urlFrom ​

urlFrom: (...args) => string | null

Defined in: packages/actionpack/lib/action-controller/base.ts:336

Parameters ​

ParameterType
...args[string | null]

Returns ​

string | null


urlOptions ​

urlOptions: (this) => Record<string, unknown>

Defined in: packages/actionpack/lib/action-controller/base.ts:665

Parameters ​

ParameterType
thisUrlForHost

Returns ​

Record<string, unknown>


viewAssigns ​

viewAssigns: <T>(this) => Record<string, unknown>

Defined in: packages/actionpack/lib/action-controller/base.ts:447

Type Parameters ​

Type Parameter
T extends object

Parameters ​

ParameterType
thisT

Returns ​

Record<string, unknown>


viewCacheDependencies ​

viewCacheDependencies: (this) => unknown[]

Defined in: packages/actionpack/lib/action-controller/base.ts:655

Parameters ​

ParameterType
thisCachingHost

Returns ​

unknown[]


viewPaths ​

readonly viewPaths: PathSet

Defined in: packages/actionpack/lib/action-controller/base.ts:475


viewRenderer ​

viewRenderer: (this) => Renderer

Defined in: packages/actionpack/lib/action-controller/base.ts:453

Parameters ​

ParameterType
thisViewRendererHost

Returns ​

Renderer


viewRuntime ​

viewRuntime: number | null

Defined in: packages/actionpack/lib/action-controller/base.ts:318


writeFragment ​

writeFragment: (this, key, content, options?) => Promise<unknown>

Defined in: packages/actionpack/lib/action-controller/base.ts:658

Parameters ​

ParameterType
thisFragmentsHost
keyunknown
contentunknown
options?CacheOptions

Returns ​

Promise<unknown>


_abstract ​

protected static _abstract: boolean = false

Defined in: packages/actionpack/lib/abstract-controller/base.ts:126

Inherited from ​

Metal._abstract


_controllerName? ​

protected static optional _controllerName?: string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:162

Inherited from ​

Metal._controllerName


_defaultFormBuilder ​

static _defaultFormBuilder: unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:560


_flashTypes ​

static _flashTypes: string[]

Defined in: packages/actionpack/lib/action-controller/base.ts:394


_helperMethods ​

static _helperMethods: string[]

Defined in: packages/actionpack/lib/action-controller/base.ts:416


_helpers ​

static _helpers: object & BaseHelpers

Defined in: packages/actionpack/lib/action-controller/base.ts:414


_helpersForModification ​

static _helpersForModification: (this) => object

Defined in: packages/actionpack/lib/action-controller/base.ts:420

Parameters ​

ParameterType
thisHelpersClass

Returns ​

object

Invented Arm ​

if — PERMANENT


_isWrapperOptions ​

static _isWrapperOptions: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:579


_layout ​

static _layout: LayoutOption

Defined in: packages/actionpack/lib/action-controller/base.ts:392


_layoutConditions ​

static _layoutConditions: Record<string, string[]>

Defined in: packages/actionpack/lib/action-controller/base.ts:393


_parameterEncodings ​

static _parameterEncodings: Hash<string, EncodingTemplate>

Defined in: packages/actionpack/lib/action-controller/base.ts:569


_routes ​

static _routes: ViewContextRoutes & { defaultUrlOptions: Record<string, unknown>; defaultEnv: Env; } | null = null

Defined in: packages/actionpack/lib/action-controller/base.ts:396


_viewPaths ​

static _viewPaths: {(): PathSet; (paths): void; }

Defined in: packages/actionpack/lib/action-controller/base.ts:371

Call Signature ​

(): PathSet

Returns ​

PathSet

Call Signature ​

(paths): void

Parameters ​
ParameterType
pathsPathSet
Returns ​

void


_wrapperOptions ​

static _wrapperOptions: ParamsWrapperOptions

Defined in: packages/actionpack/lib/action-controller/base.ts:577


_writeLayoutMethod ​

static _writeLayoutMethod: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:389

Parameters ​

ParameterType
...args[]

Returns ​

void


addFlashTypes ​

static addFlashTypes: (this, ...types) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:351

Parameters ​

ParameterType
thisFlashClassHost
...typesstring[]

Returns ​

void


afterAction ​

static afterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:362

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


allHelpersFromPath ​

static allHelpersFromPath: (path) => string[]

Defined in: packages/actionpack/lib/action-controller/base.ts:425

Parameters ​

ParameterType
pathstring | string[]

Returns ​

string[]

Invented Arm ​

replaceAll — PERMANENT


allowBrowser ​

static allowBrowser: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:535

Parameters ​

ParameterType
...args[{ block?: Block; versions: BrowserVersions; } & CallbackOptions]

Returns ​

void


allowForgeryProtection ​

static allowForgeryProtection: boolean | null

Defined in: packages/actionpack/lib/action-controller/base.ts:521


appendAfterAction ​

static appendAfterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:365

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


appendAroundAction ​

static appendAroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:369

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


appendBeforeAction ​

static appendBeforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:361

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


appendViewPath ​

static appendViewPath: (path) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:381

Parameters ​

ParameterType
pathViewPathsInput

Returns ​

void


aroundAction ​

static aroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:366

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


beforeAction ​

static beforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:358

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


buildViewContextClass ​

static buildViewContextClass: (this, klass, supportsPath, routes, helpers) => ViewContextClass

Defined in: packages/actionpack/lib/action-controller/base.ts:436

Parameters ​

ParameterType
thisViewContextClassMethods
klassViewContextClass
supportsPathboolean
routesViewContextRoutes | null | undefined
helpersobject | null | undefined

Returns ​

ViewContextClass


clearHelpers ​

static clearHelpers: (this) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:419

Parameters ​

ParameterType
thisHelpersClass

Returns ​

void


configAccessor ​

static configAccessor: (...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:517

Parameters ​

ParameterType
...namesstring[]

Returns ​

void


contentSecurityPolicy ​

static contentSecurityPolicy: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:541

Parameters ​

ParameterType
...args[boolean, CallbackOptions, ContentSecurityPolicyBlock]

Returns ​

void


contentSecurityPolicyReportOnly ​

static contentSecurityPolicyReportOnly: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:542

Parameters ​

ParameterType
...args[boolean, CallbackOptions]

Returns ​

void


csrfTokenStorageStrategy ​

static csrfTokenStorageStrategy: CsrfTokenStorage

Defined in: packages/actionpack/lib/action-controller/base.ts:525


defaultFormBuilder ​

static defaultFormBuilder: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:561

Parameters ​

ParameterType
...args[unknown]

Returns ​

void


defineCallbacks ​

static defineCallbacks: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:353

Parameters ​

ParameterType
...args(string | DefineCallbacksOptions<any>)[]

Returns ​

void


enableFragmentCacheLogging ​

static enableFragmentCacheLogging: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:357


etag ​

static etag: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:406

Parameters ​

ParameterType
...args[Etagger]

Returns ​

void


etaggers ​

static etaggers: Etagger[]

Defined in: packages/actionpack/lib/action-controller/base.ts:398


etagWithTemplateDigest ​

static etagWithTemplateDigest: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:402


forgeryProtectionOriginCheck ​

static forgeryProtectionOriginCheck: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:523


forgeryProtectionStrategy ​

static forgeryProtectionStrategy: ProtectionMethodCtor | null

Defined in: packages/actionpack/lib/action-controller/base.ts:520


fragmentCacheKey ​

static fragmentCacheKey: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:431

Parameters ​

ParameterType
...args[unknown, FragmentCacheKeyBlock]

Returns ​

void


handlerForRescue ​

static handlerForRescue: (...args) => ((e) => unknown) | null

Defined in: packages/actionpack/lib/action-controller/base.ts:594

Parameters ​

ParameterType
...args[unknown, { object?: object; }?]

Returns ​

((e) => unknown) | null


helper ​

static helper: (this, ...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:418

Parameters ​

ParameterType
thisHelpersClass
...args(HelperArgument | ((mod) => void))[]

Returns ​

void


helperAttr ​

static helperAttr: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:427

Parameters ​

ParameterType
...argsHelperMethodNameList[]

Returns ​

void


helperMethod ​

static helperMethod: (this, ...methods) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:417

_helpers is a plain-object module, so a method defined here reaches only a class that includes the module afterwards. A view context class built before this call keeps the methods it copied, where Rails' includers share the module's method table (rb_include_module, vendor/ruby/v3.3.11/class.c:1179); CLAUDE.md, "A method defined on a module after it is included".

Parameters ​

ParameterType
thisHelpersClass
...methodsHelperMethodNameList[]

Returns ​

void

Invented Arm ​

if — PERMANENT

Invented Arm ​

getScriptNameOrSourceURL — PERMANENT

Invented Arm ​

getLineNumber — PERMANENT


helperModulesFromPaths ​

static helperModulesFromPaths: (this, paths) => object[]

Defined in: packages/actionpack/lib/action-controller/base.ts:426

Parameters ​

ParameterType
this{ allHelpersFromPath: string[]; modulesForHelpers: object[]; }
this.allHelpersFromPath
this.modulesForHelpers
pathsstring | string[]

Returns ​

object[]


helpers ​

static helpers: () => Base

Defined in: packages/actionpack/lib/action-controller/base.ts:428

Returns ​

Base


helpersPath ​

static helpersPath: string | string[]

Defined in: packages/actionpack/lib/action-controller/base.ts:408


httpBasicAuthenticateWith ​

static httpBasicAuthenticateWith: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:585

Parameters ​

ParameterType
...args[{[filter: string]: unknown; name: string; password: string; realm?: string | null; }]

Returns ​

void


includeAllHelpers ​

static includeAllHelpers: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:410


isEtaggers ​

static isEtaggers: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:399


isEtagWithTemplateDigest ​

static isEtagWithTemplateDigest: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:403


isHelpersPath ​

static isHelpersPath: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:409


isIncludeAllHelpers ​

static isIncludeAllHelpers: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:412


isInheritViewContextClass ​

static isInheritViewContextClass: (this) => boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:435

Parameters ​

ParameterType
thisViewContextClassMethods

Returns ​

boolean


isMiddlewareStack ​

static isMiddlewareStack: boolean

Defined in: packages/actionpack/lib/action-controller/metal.ts:109

Inherited from ​

Metal.isMiddlewareStack


layout ​

static layout: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:388

Parameters ​

ParameterType
...args[LayoutOption, Record<string, string | string[]>]

Returns ​

void


logAt ​

static logAt: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:554

Parameters ​

ParameterType
...args[number | LogLevel, CallbackOptions]

Returns ​

void


logger ​

static logger: LoggerLike | null | undefined

Defined in: packages/actionpack/lib/action-controller/base.ts:518


logProcessAction ​

static logProcessAction: (payload) => string[]

Defined in: packages/actionpack/lib/action-controller/base.ts:555

Parameters ​

ParameterType
payloadRecord<string, unknown>

Returns ​

string[]


logWarningOnCsrfFailure ​

static logWarningOnCsrfFailure: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:522


middlewareStack ​

static middlewareStack: MiddlewareStack

Defined in: packages/actionpack/lib/action-controller/metal.ts:108

Inherited from ​

Metal.middlewareStack


MODULES ​

static MODULES: (object | AnyClass | Module<Record<never, never>>)[]

Defined in: packages/actionpack/lib/action-controller/base.ts:455


modulesForHelpers ​

static modulesForHelpers: (...args) => object[]

Defined in: packages/actionpack/lib/action-controller/base.ts:429

Parameters ​

ParameterType
...args[(string | object | unknown[])[]]

Returns ​

object[]


paramEncoding ​

static paramEncoding: (this, action, param, encoding) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:575

Parameters ​

ParameterType
thisParameterEncodingHost
actionunknown
paramunknown
encodingstring | Encoding

Returns ​

void


perFormCsrfTokens ​

static perFormCsrfTokens: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:524


permissionsPolicy ​

static permissionsPolicy: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:537

Parameters ​

ParameterType
...args[CallbackOptions, (this, policy) => void]

Returns ​

void


prependAfterAction ​

static prependAfterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:363

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


prependAroundAction ​

static prependAroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:367

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


prependBeforeAction ​

static prependBeforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:359

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


prependViewPath ​

static prependViewPath: (path) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:382

Parameters ​

ParameterType
pathViewPathsInput

Returns ​

void


protectFromForgery ​

static protectFromForgery: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:526

Parameters ​

ParameterType
...args[Record<string, unknown>]

Returns ​

void


raiseOnMissingCallbackActions ​

static raiseOnMissingCallbackActions: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:356


raiseOnOpenRedirects ​

static raiseOnOpenRedirects: boolean

Defined in: packages/actionpack/lib/action-controller/base.ts:411


rateLimit ​

static rateLimit: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:552

Parameters ​

ParameterType
...args[{ by?: Block; name?: string | null; store?: CacheStore; to: number; with?: Block; within: number | Duration; } & CallbackOptions]

Returns ​

void


render ​

static render: (...args) => Promise<unknown>

Defined in: packages/actionpack/lib/action-controller/base.ts:556

Parameters ​

ParameterType
...argsunknown[]

Returns ​

Promise<unknown>


renderer ​

static renderer: Renderer

Defined in: packages/actionpack/lib/action-controller/base.ts:557


requestForgeryProtectionToken ​

static requestForgeryProtectionToken: string | null

Defined in: packages/actionpack/lib/action-controller/base.ts:519


rescueFrom ​

static rescueFrom: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:590

Parameters ​

ParameterType
...args(string | ExceptionClass | { with?: ErrorHandler | undefined; } | ((this, error) => unknown))[]

Returns ​

void


rescueHandlers ​

static rescueHandlers: unknown[][]

Defined in: packages/actionpack/lib/action-controller/base.ts:589


rescueWithHandler ​

static rescueWithHandler: (...args) => unknown

Defined in: packages/actionpack/lib/action-controller/base.ts:591

Parameters ​

ParameterType
...args[unknown, { object?: object; visitedExceptions?: unknown[]; }?]

Returns ​

unknown


setCallback ​

static setCallback: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:354

Parameters ​

ParameterType
...args[string, ...filterList: FilterListEntry<any>[]]

Returns ​

void


setupRendererBang ​

static setupRendererBang: () => void

Defined in: packages/actionpack/lib/action-controller/base.ts:558

Returns ​

void


skipAfterAction ​

static skipAfterAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:364

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


skipAroundAction ​

static skipAroundAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:368

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<AroundCallback<ControllerOf<H>>>

Returns ​

void


skipBeforeAction ​

static skipBeforeAction: <H>(this, ...names) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:360

Type Parameters ​

Type Parameter
H extends Pick<CallableMethods<{ __updateCallbacks: void; defineCallbacks: void; resetCallbacks: void; setCallback: void; skipCallback: void; }>, "setCallback" | "skipCallback">

Parameters ​

ParameterType
thisH
...namesActionCallbackArgs<ActionCallback<ControllerOf<H>>>

Returns ​

void


skipCallback ​

static skipCallback: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:355

Parameters ​

ParameterType
...args[string, ...filterList: FilterListEntry<any>[]]

Returns ​

void


skipForgeryProtection ​

static skipForgeryProtection: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:527

Parameters ​

ParameterType
...args[Record<string, unknown>]

Returns ​

void


skipParameterEncoding ​

static skipParameterEncoding: (this, action) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:574

Parameters ​

ParameterType
thisParameterEncodingHost
actionunknown

Returns ​

void


viewCacheDependency ​

static viewCacheDependency: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:430

Parameters ​

ParameterType
...args[ViewCacheDependency]

Returns ​

void


viewContextClass ​

static viewContextClass: (this) => ViewContextClass

Defined in: packages/actionpack/lib/action-controller/base.ts:437

Parameters ​

ParameterType
thisViewContextClassMethods

Returns ​

ViewContextClass


viewPaths ​

static viewPaths: {(): PathSet; (paths): void; }

Defined in: packages/actionpack/lib/action-controller/base.ts:383

Call Signature ​

(): PathSet

Returns ​

PathSet

Call Signature ​

(paths): void

Parameters ​
ParameterType
pathsViewPathsInput
Returns ​

void


wrapParameters ​

static wrapParameters: (...args) => void

Defined in: packages/actionpack/lib/action-controller/base.ts:583

Parameters ​

ParameterType
...args[unknown, Record<string, unknown>]

Returns ​

void

Accessors ​

actionName ​

Get Signature ​

get actionName(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:68

Returns ​

string

Set Signature ​

set actionName(value): void

Defined in: packages/actionpack/lib/abstract-controller/base.ts:71

Parameters ​
ParameterType
valuestring
Returns ​

void

Inherited from ​

Metal.actionName


cacheStore ​

Get Signature ​

get cacheStore(): CacheStore | null

Defined in: packages/actionpack/lib/action-controller/base.ts:320

Returns ​

CacheStore | null

Set Signature ​

set cacheStore(store): void

Defined in: packages/actionpack/lib/action-controller/base.ts:321

Parameters ​
ParameterType
storeLookupStoreArgument
Returns ​

void


contentType ​

Get Signature ​

get contentType(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:293

Returns ​

string | null

Set Signature ​

set contentType(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:289

Parameters ​
ParameterType
valuestring | MimeType | undefined
Returns ​

void

Inherited from ​

Metal.contentType


formats ​

Get Signature ​

get formats(): readonly (string | symbol)[]

Defined in: packages/actionpack/lib/action-controller/base.ts:322

Returns ​

readonly (string | symbol)[]

Set Signature ​

set formats(values): void

Defined in: packages/actionpack/lib/action-controller/base.ts:323

Parameters ​
ParameterType
valuesreadonly (string | symbol)[] | null
Returns ​

void

Inherited from ​

Metal.formats


headers ​

Get Signature ​

get headers(): Headers

Defined in: packages/actionpack/lib/action-controller/metal.ts:277

Returns ​

Headers

Inherited from ​

Metal.headers


location ​

Get Signature ​

get location(): string | undefined

Defined in: packages/actionpack/lib/action-controller/metal.ts:285

Returns ​

string | undefined

Set Signature ​

set location(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:281

Parameters ​
ParameterType
valuestring
Returns ​

void

Inherited from ​

Metal.location


mediaType ​

Get Signature ​

get mediaType(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:297

Returns ​

string | null

Inherited from ​

Metal.mediaType


params ​

Get Signature ​

get params(): Parameters

Defined in: packages/actionpack/lib/action-controller/base.ts:316

Returns ​

Parameters

Set Signature ​

set params(value): void

Defined in: packages/actionpack/lib/action-controller/base.ts:317

Parameters ​
ParameterType
valueRecord<string, unknown> | Parameters
Returns ​

void

Inherited from ​

Metal.params


performed ​

Get Signature ​

get performed(): boolean

Defined in: packages/actionpack/lib/action-controller/metal.ts:315

Returns ​

boolean

Inherited from ​

Metal.performed


request ​

Get Signature ​

get request(): Request

Defined in: packages/actionpack/lib/action-controller/metal.ts:142

Returns ​

Request

Set Signature ​

set request(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:145

Parameters ​
ParameterType
valueRequest
Returns ​

void

Inherited from ​

Metal.request


response ​

Get Signature ​

get response(): Response

Defined in: packages/actionpack/lib/action-controller/metal.ts:149

Returns ​

Response

Set Signature ​

set response(response): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:152

Parameters ​
ParameterType
responseRackResponse | Response | Response
Returns ​

void

Inherited from ​

Metal.response


responseBody ​

Get Signature ​

get responseBody(): unknown

Defined in: packages/actionpack/lib/action-controller/metal.ts:311

Returns ​

unknown

Inherited from ​

Metal.responseBody


responseCode ​

Get Signature ​

get responseCode(): number

Defined in: packages/actionpack/lib/action-controller/metal.ts:273

Returns ​

number

Inherited from ​

Metal.responseCode


session ​

Get Signature ​

get session(): Session

Defined in: packages/actionpack/lib/action-controller/metal.ts:158

Returns ​

Session

Inherited from ​

Metal.session


status ​

Get Signature ​

get status(): number

Defined in: packages/actionpack/lib/action-controller/metal.ts:269

Returns ​

number

Set Signature ​

set status(value): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:265

Parameters ​
ParameterType
valuestring | number
Returns ​

void

Inherited from ​

Metal.status

Methods ​

actionMethods() ​

actionMethods(): ReadonlySet<string>

Defined in: packages/actionpack/lib/abstract-controller/base.ts:237

Returns ​

ReadonlySet<string>

Inherited from ​

Metal.actionMethods


config() ​

config(): Configuration & Pick<CachingClassMethods, "performCaching">

Defined in: packages/actionpack/lib/action-controller/base.ts:319

Returns ​

Configuration & Pick<CachingClassMethods, "performCaching">


controllerName() ​

controllerName(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:229

Returns ​

string | null

Inherited from ​

Metal.controllerName


controllerPath() ​

controllerPath(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:233

Returns ​

string

Inherited from ​

Metal.controllerPath


dispatch() ​

dispatch(name, request, response): Promise<RackResponse>

Defined in: packages/actionpack/lib/action-controller/metal.ts:237

Parameters ​

ParameterType
namestring
requestRequest
responseResponse

Returns ​

Promise<RackResponse>

Inherited from ​

Metal.dispatch


fullUrlFor() ​

fullUrlFor(options?): string

Defined in: packages/actionpack/lib/action-controller/base.ts:326

Parameters ​

ParameterType
options?UrlForOptions

Returns ​

string


helpers() ​

helpers(): Base

Defined in: packages/actionpack/lib/action-controller/base.ts:324

Returns ​

Base


inspect() ​

inspect(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:245

Returns ​

string

Inherited from ​

Metal.inspect


isAvailableAction() ​

isAvailableAction(actionName): boolean

Defined in: packages/actionpack/lib/abstract-controller/base.ts:241

Parameters ​

ParameterType
actionNamestring

Returns ​

boolean

Inherited from ​

Metal.isAvailableAction


polymorphicPath() ​

polymorphicPath(recordOrHashOrArray, options?): string

Defined in: packages/actionpack/lib/action-controller/base.ts:329

Parameters ​

ParameterType
recordOrHashOrArrayPolymorphicArg
options?PolymorphicOptions

Returns ​

string


polymorphicUrl() ​

polymorphicUrl(recordOrHashOrArray, options?): string

Defined in: packages/actionpack/lib/action-controller/base.ts:328

Parameters ​

ParameterType
recordOrHashOrArrayPolymorphicArg
options?PolymorphicOptions

Returns ​

string


process() ​

process(action, ...args): Promise<unknown>

Defined in: packages/actionpack/lib/abstract-controller/base.ts:216

Parameters ​

ParameterType
actionstring
...argsunknown[]

Returns ​

Promise<unknown>

Inherited from ​

Metal.process


redirectTo() ​

redirectTo<FlashType>(options?, responseOptionsAndFlash?): Promise<number>

Defined in: packages/actionpack/lib/action-controller/base.ts:330

Type Parameters ​

Type ParameterDefault type
FlashType extends stringnever

Parameters ​

ParameterType
options?RedirectToOptions
responseOptionsAndFlash?RedirectToResponseOptionsAndFlash<FlashType>

Returns ​

Promise<number>


render() ​

render<P>(...args): void | Promise<void>

Defined in: packages/actionpack/lib/action-controller/base.ts:312

Type Parameters ​

Type ParameterDefault type
P extends stringstring

Parameters ​

ParameterType
...argsRenderArgs<P>

Returns ​

void | Promise<void>


renderToString() ​

renderToString<P>(...args): string | Promise<string>

Defined in: packages/actionpack/lib/action-controller/base.ts:313

Type Parameters ​

Type ParameterDefault type
P extends stringstring

Parameters ​

ParameterType
...argsRenderArgs<P>

Returns ​

string | Promise<string>


resetSession() ​

resetSession(): Promise<void>

Defined in: packages/actionpack/lib/action-controller/metal.ts:259

Returns ​

Promise<void>

Inherited from ​

Metal.resetSession


routeFor() ​

routeFor(name, ...args): string

Defined in: packages/actionpack/lib/action-controller/base.ts:327

Parameters ​

ParameterType
namestring
...argsunknown[]

Returns ​

string


setRequestBang() ​

setRequestBang(request): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:245

Parameters ​

ParameterType
requestRequest

Returns ​

void

Inherited from ​

Metal.setRequestBang


setResponseBang() ​

setResponseBang(response): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:250

Parameters ​

ParameterType
responseRackResponse | Response | Response

Returns ​

void

Inherited from ​

Metal.setResponseBang


setResponseBody() ​

setResponseBody(body): Promise<void>

Defined in: packages/actionpack/lib/action-controller/metal.ts:301

Parameters ​

ParameterType
bodyunknown

Returns ​

Promise<void>

Inherited from ​

Metal.setResponseBody


toA() ​

toA(): RackResponse

Defined in: packages/actionpack/lib/action-controller/metal.ts:319

Returns ​

RackResponse

Inherited from ​

Metal.toA


urlFor() ​

urlFor(options?): string

Defined in: packages/actionpack/lib/action-controller/base.ts:325

Parameters ​

ParameterType
options?UrlForOptions

Returns ​

string

Inherited from ​

Metal.urlFor


viewContext() ​

viewContext(): Base

Defined in: packages/actionpack/lib/action-controller/base.ts:449

Returns ​

Base


viewContextClass() ​

viewContextClass(): typeof Base

Defined in: packages/actionpack/lib/action-controller/base.ts:441

Returns ​

typeof Base


action() ​

static action(this, name): RackAppObject | RackApp

Defined in: packages/actionpack/lib/action-controller/metal.ts:191

Parameters ​

ParameterType
thistypeof Metal
namestring

Returns ​

RackAppObject | RackApp

Inherited from ​

Metal.action


actionMethods() ​

static actionMethods(): ReadonlySet<string>

Defined in: packages/actionpack/lib/abstract-controller/base.ts:194

Returns ​

ReadonlySet<string>

Inherited from ​

Metal.actionMethods


controllerName() ​

static controllerName(): string | null

Defined in: packages/actionpack/lib/action-controller/metal.ts:164

Returns ​

string | null

Inherited from ​

Metal.controllerName


controllerPath() ​

static controllerPath(): string

Defined in: packages/actionpack/lib/abstract-controller/base.ts:150

Returns ​

string

Inherited from ​

Metal.controllerPath


dispatch() ​

static dispatch(this, name, req, res): Promise<RackResponse>

Defined in: packages/actionpack/lib/action-controller/metal.ts:207

Parameters ​

ParameterType
thistypeof Metal
namestring
reqRequest
resResponse

Returns ​

Promise<RackResponse>

Inherited from ​

Metal.dispatch


makeResponseBang() ​

static makeResponseBang(request): Promise<Response>

Defined in: packages/actionpack/lib/action-controller/metal.ts:173

Parameters ​

ParameterType
requestRequest

Returns ​

Promise<Response>

Inherited from ​

Metal.makeResponseBang


middleware() ​

static middleware(): MiddlewareStack

Defined in: packages/actionpack/lib/action-controller/metal.ts:183

Returns ​

MiddlewareStack

Inherited from ​

Metal.middleware


supportsPath() ​

static supportsPath(): boolean

Defined in: packages/actionpack/lib/abstract-controller/base.ts:276

Returns ​

boolean

Inherited from ​

Metal.supportsPath


use() ​

static use(...args): void

Defined in: packages/actionpack/lib/action-controller/metal.ts:187

Parameters ​

ParameterType
...argsunknown[]

Returns ​

void

Inherited from ​

Metal.use


withoutModules() ​

static withoutModules(...modules): (object | AnyClass | Module<Record<never, never>>)[]

Defined in: packages/actionpack/lib/action-controller/base.ts:457

Parameters ​

ParameterType
...modules(string | object | AnyClass | Module<Record<never, never>>)[]

Returns ​

(object | AnyClass | Module<Record<never, never>>)[]