method

action

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

Returns

  • proc - A rack application