another big commit :D
This commit is contained in:
@@ -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
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user