lib/pakyow/presenter/errors.rb in pakyow-presenter-1.0.0.rc2 vs lib/pakyow/presenter/errors.rb in pakyow-presenter-1.0.0.rc3
- old
+ new
@@ -17,18 +17,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#{template_path}.html
+ frontend/pages#{view_path}.html
* [Learn about view templates →](https://pakyow.com/docs/frontend/composition/)
MESSAGE
end
private
- def template_path
+ def view_path
if @context.to_s.empty? || @context.to_s == "/"
"/index"
else
@context
end