Class: Pakyow::Presenter::ImplicitRenderingError
- Inherits:
-
UnknownPage
- Object
- Error
- Error
- UnknownPage
- Pakyow::Presenter::ImplicitRenderingError
- Defined in:
- lib/pakyow/presenter/errors.rb
Instance Method Summary collapse
Instance Method Details
#contextual_message ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/pakyow/presenter/errors.rb', line 44 def if Pakyow.env?(:prototype) super else <<~MESSAGE #{super} If you want to call backend code instead, create a controller route that handles this request: get "#{@context}" do # your code here end MESSAGE end end |
#name ⇒ Object
40 41 42 |
# File 'lib/pakyow/presenter/errors.rb', line 40 def name "Unknown page" end |