Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow 404 page to have custom view/layout templates.

  • Loading branch information...
commit 7a257f325dfd48c2ecb3a536b4bfcb361519d520 1 parent 57e47eb
@ugisozols ugisozols authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  pages/lib/refinery/pages/instance_methods.rb
View
2  pages/lib/refinery/pages/instance_methods.rb
@@ -10,7 +10,7 @@ def self.included(base)
def error_404(exception=nil)
if (@page = ::Refinery::Page.where(:menu_match => "^/404$").includes(:parts).first).present?
# render the application's custom 404 page with layout and meta.
- render :template => '/refinery/pages/show', :formats => [:html], :status => 404
+ render_with_templates?(:status => 404)
return false
else
super
Please sign in to comment.
Something went wrong with that request. Please try again.