Class: Weft::Defaults::NotFoundPage
- Defined in:
- lib/weft/defaults/not_found_page.rb
Overview
Gem-default full-document page rendered for traditional (non-htmx) responses when a NotFound error falls through to the Page recovers chain. Thin wrapper around NotFoundComponent.
Constant Summary
Constants included from Page::Assets
Page::Assets::HTMX_ATTRS, Page::Assets::HTMX_SRC, Page::Assets::HTMX_SSE_ATTRS, Page::Assets::HTMX_SSE_SRC
Instance Attribute Summary
Attributes included from Weft::DSL::Params
Instance Method Summary collapse
-
#build(attributes = {}) ⇒ Object
See ErrorPage#build: the component resolves these from the same request, so passing them here would only paint them onto the wrapper.
Methods inherited from Page
#add_child, inferred_routable?, inherited, #initialize, path_param_keys, redirect_url, render, resolve_page_path, #tag_name, #to_s, #weft_page
Methods included from Registry::Eligibility
#abstract!, #routable!, #routable?
Methods included from Page::Head
Methods included from Page::Assets
Methods included from Context::Traversal
#closest, #closest!, #enclosing, #enclosing!
Methods included from Weft::DSL::Containers
Methods included from Weft::DSL::Recoveries
Methods included from Weft::DSL::Params
included, #serializable_params, warned_collisions
Methods included from Context::Interception
Constructor Details
This class inherits a constructor from Weft::Page
Instance Method Details
#build(attributes = {}) ⇒ Object
See ErrorPage#build: the component resolves these from the same request, so passing them here would only paint them onto the wrapper.
20 21 22 23 |
# File 'lib/weft/defaults/not_found_page.rb', line 20 def build(attributes = {}) super insert_tag(Weft::Defaults::NotFoundComponent) end |