action(name, klass = ActionDispatch::Request) public

Return a rack endpoint for the given action. Memoize the endpoint, so multiple calls into MyController.action will return the same object for the same action.

Parameters

action<#to_s>

An action name

Returns

Proc

A rack application

Show source
Register or log in to add new notes.