Skip to content
This repository

Allow 404 page to have custom view/layout templates. #1746

Merged
merged 1 commit into from about 2 years ago

3 participants

Uģis Ozols Don't Add Me To Your Organization a.k.a The Travis Bot Philip Arndt
Uģis Ozols
Owner

This should fix #1745.

Don't Add Me To Your Organization a.k.a The Travis Bot

This pull request passes (merged 7a257f3 into 57e47eb).

Philip Arndt parndt merged commit e14cb83 into from
Philip Arndt parndt closed this
Uģis Ozols ugisozols referenced this pull request from a commit
Uģis Ozols ugisozols Add note to changelog about #1746.
Conflicts:

	changelog.md
3cdbd9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 12, 2012
Uģis Ozols ugisozols Allow 404 page to have custom view/layout templates. 7a257f3
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  pages/lib/refinery/pages/instance_methods.rb
2  pages/lib/refinery/pages/instance_methods.rb
@@ -10,7 +10,7 @@ def self.included(base)
10 10 def error_404(exception=nil)
11 11 if (@page = ::Refinery::Page.where(:menu_match => "^/404$").includes(:parts).first).present?
12 12 # render the application's custom 404 page with layout and meta.
13   - render :template => '/refinery/pages/show', :formats => [:html], :status => 404
  13 + render_with_templates?(:status => 404)
14 14 return false
15 15 else
16 16 super

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.