better error handling for not found resource, gitolite error

This commit is contained in:
Dmitriy Zaporozhets 2012-02-22 07:14:54 +02:00
parent 9e6d0710e9
commit 7d279f9302
9 changed files with 73 additions and 7 deletions

View file

@ -1,5 +1,7 @@
class ErrorsController < ApplicationController
layout "error"
def githost
render :file => File.join(Rails.root, "public", "githost_error"), :layout => false
render "errors/gitolite"
end
end