Class: Pakyow::Presenter::ImplicitRenderingError

Inherits:
UnknownPage show all
Defined in:
lib/pakyow/presenter/errors.rb

Instance Method Summary collapse

Instance Method Details

#contextual_messageObject



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/pakyow/presenter/errors.rb', line 44

def contextual_message
  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

#nameObject



40
41
42
# File 'lib/pakyow/presenter/errors.rb', line 40

def name
  "Unknown page"
end