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
|
end
|
||||||
|
|
||||||
def chat
|
def chat
|
||||||
|
begin
|
||||||
render :action => "chat"
|
render :action => "chat"
|
||||||
|
rescue
|
||||||
|
render :text => "<div class=\"box wide\">" <<
|
||||||
|
"Keep it on-site" <<
|
||||||
|
"</div>", :layout => "application"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def privacy
|
def privacy
|
||||||
|
|
Loading…
Reference in a new issue