Module: Weft::Router::Actions
- Included in:
- Weft::Router
- Defined in:
- lib/weft/router/actions.rb
Overview
Action-dispatch slice of the Router. Resolves a request path to a
[Action, ComponentClass] pair, invokes the action callable, and
renders the result (either the component the action renders or a
Weft::Redirect). Error-handling delegates to Weft::Router::Errors via
render_error; the small render_action_error wrapper sets the
destructive-swap header before delegating.
Depends on Router internals: resolver, filtered_params,
handle_redirect, apply_trigger_header, render_oob_includes,
render_error, headers.