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:
parent
5c8fb7e169
commit
03043af843
@ -47,7 +47,7 @@ class Admin::PhotosController < Admin::AdminController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def permitted_params
|
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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user