From 03043af84314c3d719cc3a4448fea96115751d39 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 10 Jul 2014 15:20:29 +0100 Subject: [PATCH] Fix issue with saving category ids. --- app/controllers/admin/photos_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/photos_controller.rb b/app/controllers/admin/photos_controller.rb index 0dbf44e..92dbb3f 100644 --- a/app/controllers/admin/photos_controller.rb +++ b/app/controllers/admin/photos_controller.rb @@ -47,7 +47,7 @@ class Admin::PhotosController < Admin::AdminController end def permitted_params - params.require(:photo).permit(:image, :title, :description, :flickr_url, :featured, :enabled, :taken_at) + params.require(:photo).permit(:image, :title, :description, :flickr_url, :featured, :enabled, :taken_at, category_ids: []) end end