Provide explicit html format when rendering git_not_found page

Prior, if the request format was, for example, .zip, we'd get an
`ActionView::MissingTemplate` error.
This commit is contained in:
Robert Speicher 2016-02-15 16:38:27 -05:00
parent 012c75d1b0
commit ae13389b0b
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class ApplicationController < ActionController::Base
end
def git_not_found!
render "errors/git_not_found", layout: "errors", status: 404
render "errors/git_not_found.html", layout: "errors", status: 404
end
def method_missing(method_sym, *arguments, &block)