From 69ad1545df83324a95fd73cd8d33418d66971eb3 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Mon, 1 Jul 2024 18:50:49 -0500 Subject: [PATCH] update tags_controller#popular to permit params in order to convert to_h --- app/controllers/tags_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 0492fddd..fc231a7e 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -4,7 +4,8 @@ class TagsController < ApplicationController def popular params[:name].try :downcase! - render json: popular_serializer.resource(params, nil, current_user: current_user) + params.permit! + render json: popular_serializer.resource(params.to_h, nil, current_user: current_user) end def popular_serializer