bunch of stuffs
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
require File.expand_path('../application', __FILE__)
|
||||
|
||||
# Initialize the rails application
|
||||
Site::Application.initialize!
|
||||
Site::Application.initialize!
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user