1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Fix issue with saving category ids.

This commit is contained in:
Dan Barber 2014-07-10 15:20:29 +01:00
parent 5c8fb7e169
commit 03043af843

View File

@ -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