mirror of
https://github.com/wahyd4/Libr.git
synced 2026-08-25 04:36:47 +10:00
fix routes error
This commit is contained in:
+6
-3
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user