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
    "      \#{super}\n\n      If you want to call backend code instead, create a controller route that handles this request:\n\n          get \"\#{@context}\" do\n            # your code here\n          end\n    MESSAGE\n  end\nend\n"

#nameObject



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

def name
  "Unknown page"
end