bunch of stuffs

This commit is contained in:
jomo
2013-07-28 02:47:10 +02:00
parent c00532aff2
commit 2699751d86
19 changed files with 299 additions and 54 deletions

View File

@@ -39,7 +39,7 @@ module Site
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
config.time_zone = 'Berlin'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]

View File

@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Site::Application.initialize!
Site::Application.initialize!

View File

@@ -1,9 +1,16 @@
Site::Application.routes.draw do
resources :blogposts do
resources :blogposts, :path => '/blog' do
resources :comments
end
resources :users
resources :users do
member do
get 'become'
end
collection do
get 'unbecome'
end
end
match '/serverstatus.png' => 'serverchecker#show'