Permalink
Browse files

Allow 404 page to have custom view/layout templates.

  • Loading branch information...
ugisozols committed Jun 12, 2012
1 parent 57e47eb commit 7a257f325dfd48c2ecb3a536b4bfcb361519d520
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 7a257f3

Please sign in to comment.