Skip to content

Commit

Permalink
Fix ActionView::MissingTemplate exception when rendering custom 404s
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Winsor committed Sep 22, 2011
1 parent 8285ecc commit 67acfb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/lib/refinery/pages/instance_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module InstanceMethods
def error_404(exception=nil)
if (@page = ::Refinery::Page.where(:menu_match => "^/404$").includes(:parts, :slugs).first).present?
# render the application's custom 404 page with layout and meta.
render :template => '/pages/show', :format => 'html', :status => 404
render :template => '/refinery/pages/show', :format => 'html', :status => 404
else
super
end
Expand Down

0 comments on commit 67acfb8

Please sign in to comment.