From c6ca05bd46b5904615cb4ad5c72f12a66abdf9af Mon Sep 17 00:00:00 2001 From: Mauricio Giacomini Girardello <mauriciogiacomini4@gmail.com> Date: Tue, 27 Oct 2015 11:32:44 -0200 Subject: [PATCH] adding routes for add learning objects in collections and get all collections of a learning object --- config/routes.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index b3ac4140..97af4816 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -40,13 +40,15 @@ Rails.application.routes.draw do member do post :like post :bookmarks + get :collections end end resources :institutions resources :collections do member do - post '/learning_object/:learning_object_id', as: :add_collection_learning_object, action: :add_learning_object + # add a learning object for some collection + post '/learning_object/:learning_object_id', as: :add_learning_object, action: :add_learning_object end end @@ -63,7 +65,7 @@ Rails.application.routes.draw do get '/search/fetch' => 'search#fetch', as: 'search_fetch' get '/autocomplete' => 'search#autocomplete' - get '/subject/:id' => 'welcome#subject', as:'subject_index' + get '/subject/:id' => 'welcome#subject', as: 'subject_index' get '/collection' => 'welcome#collection' get '/add_file' => 'welcome#add_file' get '/signup' => 'welcome#signup' -- GitLab