diff --git a/.gitignore b/.gitignore index 68952c6..5dc2243 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 8ff3972..70e730a 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -14,6 +14,10 @@ class HomeController < ApplicationController end end + def chat + render :action => "chat" + end + def privacy begin render :action => "privacy" diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 1fe1956..80ed987 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -116,6 +116,7 @@ (iqc = InvitationRequest.verified_count) > 0 %> Invitation Queue (<%= iqc %>) <% end %> + Chat <% if defined?(BbsController) %> BBS <% end %> diff --git a/config/routes.rb b/config/routes.rb index ea13f5e..79c6b9d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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"