From 3f96cf5f38e8cc3fc8553b0cf151d287607a0ffc Mon Sep 17 00:00:00 2001 From: junv Date: Wed, 9 Apr 2014 15:18:45 +0800 Subject: [PATCH] fix routes error --- config/routes.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 6c2d651..7552679 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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'