Skip to content

Commit

Permalink
Remove some index routes
Browse files Browse the repository at this point in the history
  • Loading branch information
agordillo committed Mar 12, 2016
1 parent 491b675 commit 28f7d29
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/controllers/excursions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ExcursionsController < ApplicationController
#############

def index
redirect_to home_path
end

def show
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/workshops_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class WorkshopsController < ApplicationController
#############

def index
super
redirect_to home_path
end

def show
Expand Down
14 changes: 7 additions & 7 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@
resources :workshops

#Workshops Activities
resources :wa_assignments
resources :wa_resources
resources :contributions
resources :wa_assignments, :except => [:index]
resources :wa_resources, :except => [:index]
resources :contributions, :except => [:index]
match '/wa_resources_galleries/:id/add_resource' => 'wa_resources_galleries#add_resource'
resources :wa_resources_galleries
resources :wa_contributions_galleries
resources :wa_texts
resources :wa_resources_galleries, :except => [:index]
resources :wa_contributions_galleries, :except => [:index]
resources :wa_texts, :except => [:index]

#courses
resources :courses do
Expand All @@ -126,7 +126,7 @@
match 'qs/:id' => 'quiz_sessions#show'

#PDF to Excursion
resources :pdfexes
resources :pdfexes, :except => [:index]

#Categories
match '/categories/categorize' => 'categories#categorize', :via => :post
Expand Down

0 comments on commit 28f7d29

Please sign in to comment.