Skip to content
This repository
Browse code

Merged pull request #218

  • Loading branch information...
commit 226cc2a5970caf0da1a7006a1344f6e2efdc0bed 1 parent e28c8ce
Jason Lee authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 app/controllers/application_controller.rb
4 app/controllers/application_controller.rb
@@ -13,9 +13,9 @@ def render_403
13 13 def render_optional_error_file(status_code)
14 14 status = status_code.to_s
15 15 if ["404","403", "422", "500"].include?(status)
16   - render :template => "/errors/#{status}.html.erb", :status => status, :layout => "application"
  16 + render :template => "/errors/#{status}", :format => [:html], :handler => [:erb], :status => status, :layout => "application"
17 17 else
18   - render :template => "/errors/unknown.html.erb", :status => status, :layout => "application"
  18 + render :template => "/errors/unknown", :format => [:html], :handler => [:erb], :status => status, :layout => "application"
19 19 end
20 20 end
21 21

0 comments on commit 226cc2a

Please sign in to comment.
Something went wrong with that request. Please try again.