Do you guys have any suggestions on how to make the strong params suck less?
On the activity model:
galleryable :briefing_gallery, :debriefing_gallery
In the activities controller:
params.require(:activity).permit([:name, :description, :start_at, :end_at,
:briefing_gallery_attributes=>{:asset_attachments_attributes=>[:id,:asset_id,:sort_order]},
:debriefing_gallery_attributes=>{:asset_attachments_attributes=>[:id,:asset_id,:sort_order]}])
Do you guys have any suggestions on how to make the strong params suck less?
On the activity model:
galleryable :briefing_gallery, :debriefing_gallery
In the activities controller:
params.require(:activity).permit([:name, :description, :start_at, :end_at,
:briefing_gallery_attributes=>{:asset_attachments_attributes=>[:id,:asset_id,:sort_order]},
:debriefing_gallery_attributes=>{:asset_attachments_attributes=>[:id,:asset_id,:sort_order]}])