Class: Weft::Defaults::NotFoundPage

Inherits:
Page
  • Object
show all
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

#params

Instance Method Summary collapse

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

included

Methods included from Page::Assets

included

Methods included from Context::Traversal

#closest, #closest!, #enclosing, #enclosing!

Methods included from Weft::DSL::Containers

behavior_for, included

Methods included from Weft::DSL::Recoveries

included

Methods included from Weft::DSL::Params

included, #serializable_params, warned_collisions

Methods included from Context::Interception

#insert_tag

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