This commit is contained in:
r888888888
2013-07-04 20:48:06 -07:00
parent b21a0329ec
commit 279c5e7b6a
2 changed files with 13 additions and 2 deletions

View File

@@ -154,6 +154,9 @@ Danbooru::Application.routes.draw do
resources :pool_versions, :only => [:index]
resources :posts do
resources :votes, :controller => "post_votes", :only => [:create, :destroy]
collection do
get :home
end
member do
put :revert
put :copy_notes
@@ -352,5 +355,5 @@ Danbooru::Application.routes.draw do
match "/static/benchmark" => "static#benchmark"
match "/static/name_change" => "static#name_change", :as => "name_change"
root :to => "explore/posts#intro"
root :to => "posts#home"
end