From 65daae4668cbc793ce62018464690fe03dd4e1b6 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Mon, 7 Nov 2016 14:58:04 +0800 Subject: [PATCH] Remove useless route --- config/routes.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index b60aa21..30d6cb4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,11 +11,7 @@ WBlog::Application.routes.draw do get :refresh end end - resources :likes, only: [:index, :create, :destroy] do - member do - get :is_liked - end - end + resources :likes, only: [:index, :create, :destroy] end