Fix error, submission, hints and help views

This commit is contained in:
Sebastian Serth
2018-09-30 13:16:07 +02:00
parent 15b1670511
commit 9666683bd7
18 changed files with 88 additions and 79 deletions

View File

@@ -28,7 +28,7 @@ Rails.application.routes.draw do
delete '/comment_by_id', to: 'comments#destroy_by_id'
put '/comments', to: 'comments#update'
resources :subscriptions do
resources :subscriptions, only: [:create, :destroy] do
member do
get :unsubscribe, to: 'subscriptions#destroy'
end
@@ -40,8 +40,6 @@ Rails.application.routes.draw do
get 'dashboard', to: 'dashboard#show'
end
get '/help', to: 'application#help'
get 'statistics/', to: 'statistics#show'
get 'statistics/graphs', to: 'statistics#graphs'
get 'statistics/graphs/user-activity', to: 'statistics#user_activity'
@@ -65,7 +63,7 @@ Rails.application.routes.draw do
get :statistics
end
resources :errors, only: [:create, :index, :show]
resources :errors, only: [:create, :index, :show], controller: 'code_ocean/errors'
resources :hints
end