Class: Pakyow::Presenter::UnknownPage

Inherits:
Error
  • Object
show all
Defined in:
lib/pakyow/presenter/errors.rb

Direct Known Subclasses

ImplicitRenderingError

Instance Method Summary collapse

Instance Method Details

#contextual_messageObject



18
19
20
21
22
23
24
25
26
# File 'lib/pakyow/presenter/errors.rb', line 18

def contextual_message
  <<~MESSAGE
    Pakyow couldn't render a view for `#{String.normalize_path(@context)}`. Try creating a view template for this path:

        frontend/pages#{view_path}.html

      * [Learn about view templates &rarr;](https://pakyow.com/docs/frontend/composition/)
  MESSAGE
end