another big commit :D

This commit is contained in:
jomo
2013-10-07 04:59:21 +02:00
parent 2761387703
commit 5fac505a31
74 changed files with 1003 additions and 357 deletions

View File

@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
Site::Application.config.session_store :cookie_store, key: '_site_session'
# Site::Application.config.session_store :cookie_store, key: '_redstoner_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Site::Application.config.session_store :active_record_store
Site::Application.config.session_store :active_record_store

View File

@@ -3,20 +3,30 @@ Site::Application.routes.draw do
resources :blogposts, :path => '/blog' do
resources :comments
end
resources :roles
resources :users do
member do
get 'become'
get 'confirm'
end
collection do
get 'unbecome'
end
end
resources :forumgroups, :as => 'forums', :path => '/forums' do
resources :forumgroups, :path => '/forums' do
member do
resources :forums, :path => 'f' do
member do
resources :forumthreads, :path => 't', :as => 'threads' do
end
end
end
end
end
match '/serverstatus.png' => 'serverchecker#show'
match '/status' => 'status#show'
get "logout" => 'sessions#destroy'
get 'login' => 'sessions#new'