comment votes: add index page.

This commit is contained in:
evazion
2019-10-28 14:12:40 -05:00
parent 93b03c04ad
commit d3165f78aa
6 changed files with 86 additions and 5 deletions

View File

@@ -92,8 +92,9 @@ Rails.application.routes.draw do
post :approve
end
end
resources :comment_votes, only: [:index]
resources :comments do
resource :votes, :controller => "comment_votes", :only => [:create, :destroy]
resource :votes, controller: "comment_votes", only: [:create, :destroy], as: "comment_votes"
collection do
get :search
end