From 6427b28c60c6ed0dfd637307d1ab4ffe65c1144d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 14 Nov 2024 15:47:43 +0000 Subject: Adds ResourceType model --- app/controllers/pdfresources_controller.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'app/controllers/pdfresources_controller.rb') diff --git a/app/controllers/pdfresources_controller.rb b/app/controllers/pdfresources_controller.rb index adacc64..a710404 100644 --- a/app/controllers/pdfresources_controller.rb +++ b/app/controllers/pdfresources_controller.rb @@ -69,16 +69,17 @@ class PdfresourcesController < ApplicationController # Only allow a list of trusted parameters through. def pdfresource_params params.require(:pdfresource).permit( - :name, - :stripe_product_id, - :price, - :age_range, - :curriculum, - :feature_slot, - :description, + :name, + :stripe_product_id, + :price, + :age_range, + :curriculum, + :resource_type_id, + :feature_slot, + :description, :card_description, :credits, - pdfs: [], + pdfs: [], thumbnails: [] ) end -- cgit v1.2.3