rename index to home

This commit is contained in:
jomo
2014-06-23 02:53:32 +02:00
parent 5eeeb6a0bc
commit e3c45c4acd
6 changed files with 44 additions and 29 deletions

View File

@@ -4,10 +4,11 @@ Redstoner::Application.routes.draw do
resources :comments
end
resources :statics, only: [:index, :donate], path: '/' do
resources :statics, only: [:home, :donate], path: '/' do
collection do
get 'donate'
get 'index'
get 'home'
get 'index', to: redirect('/home')
end
end
@@ -50,5 +51,5 @@ Redstoner::Application.routes.draw do
# post 'paypal' => 'paypal#create'
root to: 'statics#index'
root to: 'statics#home'
end