fix routes error

This commit is contained in:
2014-04-09 15:18:45 +08:00
parent 35387af68e
commit 3f96cf5f38
+6 -3
View File
@@ -58,9 +58,12 @@ Libr::Application.routes.draw do
resource :locations, :only => [:create, :destroy]
get 'locations' => 'locations#index'
resources :users do
resources :books, :only => [:create, :index]
end
resource :books, :only => [:create]
#resources :users do
# resources :books, :only => [:create, :index]
#end
get 'books' => 'books#index'