add /chat page

This commit is contained in:
joshua stein 2015-10-11 12:53:48 -05:00
parent 677da599f2
commit 1c789fbae0
4 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View file

@ -22,6 +22,7 @@ public/assets
# templates to be created per-site
app/views/home/privacy.*
app/views/home/about.*
app/views/home/chat.*
# files added in production
lib/tasks/deploy.rake

View file

@ -14,6 +14,10 @@ class HomeController < ApplicationController
end
end
def chat
render :action => "chat"
end
def privacy
begin
render :action => "privacy"

View file

@ -116,6 +116,7 @@
(iqc = InvitationRequest.verified_count) > 0 %>
<a href="/invitations">Invitation Queue (<%= iqc %>)</a>
<% end %>
<a href="/chat">Chat</a>
<% if defined?(BbsController) %>
<a href="/bbs">BBS</a>
<% end %>

View file

@ -123,6 +123,7 @@ Lobsters::Application.routes.draw do
get "/privacy" => "home#privacy"
get "/about" => "home#about"
get "/chat" => "home#chat"
if defined?(BbsController) || Rails.env.development?
get "/bbs" => "bbs#index"