Skip to content

Commit

Permalink
Allow 404 page to have custom view/layout templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jun 13, 2012
1 parent 58bb214 commit 5cb2b93
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 @@ -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
Expand Down

0 comments on commit 5cb2b93

Please sign in to comment.