diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/pdfresources_controller.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/controllers/pdfresources_controller.rb b/app/controllers/pdfresources_controller.rb index 4cd2d74..adacc64 100644 --- a/app/controllers/pdfresources_controller.rb +++ b/app/controllers/pdfresources_controller.rb @@ -68,7 +68,19 @@ class PdfresourcesController < ApplicationController # Only allow a list of trusted parameters through. def pdfresource_params - params.expect(pdfresource: [:name, :stripe_product_id, :price, :age_range, :curriculum, :feature_slot, :description, :card_description, pdfs: [], thumbnails: []]) + params.require(:pdfresource).permit( + :name, + :stripe_product_id, + :price, + :age_range, + :curriculum, + :feature_slot, + :description, + :card_description, + :credits, + pdfs: [], + thumbnails: [] + ) end # must be admin! |