From 20b84578a2db291b68d8aa483174e1ce0f6e3cad Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 23 Dec 2017 00:56:40 -0600 Subject: [PATCH] Fix "The action 'show' could not be found for FavoritesController" Fixes an exception on "/favorites/1234" requests. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index b2d602646..c169cb5c8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -124,7 +124,7 @@ Rails.application.routes.draw do end end resource :dtext_preview, :only => [:create] - resources :favorites + resources :favorites, :only => [:index, :create, :destroy] resources :favorite_groups do member do put :add_post