Merge pull request #283 from pushcx/chat-default
Don't 500 if someone hasn't added a chat template
This commit is contained in:
commit
f05cb03b0c
|
@ -15,7 +15,13 @@ class HomeController < ApplicationController
|
|||
end
|
||||
|
||||
def chat
|
||||
render :action => "chat"
|
||||
begin
|
||||
render :action => "chat"
|
||||
rescue
|
||||
render :text => "<div class=\"box wide\">" <<
|
||||
"Keep it on-site" <<
|
||||
"</div>", :layout => "application"
|
||||
end
|
||||
end
|
||||
|
||||
def privacy
|
||||
|
|
Loading…
Reference in a new issue