class Pakyow::Presenter::UnknownPage
Public Instance Methods
contextual_message()
click to toggle source
# 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 →](https://pakyow.com/docs/frontend/composition/) MESSAGE end
Private Instance Methods
view_path()
click to toggle source
# File lib/pakyow/presenter/errors.rb, line 30 def view_path if @context.to_s.empty? || @context.to_s == "/" "/index" else @context end end