I am trying to add an attribute called category
to an active admin comment. I have successfully changed the comment form. When I submit the comment, I get the following:
Started POST "/admin/comments" for ::1 at 2017-05-27 08:20:41 -0400
Processing by Admin::CommentsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"vaGGzKnE10Nn/QmIzBk+2K0OqvheX6hPRHlm9F9BJkEL1I6D9YDz+qx1d1ekuuVkIfnqYamXqc5aLJH3TFdF4g==", "active_admin_comment"=>{"resource_type"=>"Person", "resource_id"=>"1203", "body"=>"test comment with category", "category"=>"Adventures"}, "commit"=>"Add Comment"}
AdminUser Load (1.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = $1 ORDER BY "admin_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
Unpermitted parameter: category
As you can see, I can't save the category. I can't figure out how to access the strong params of an active admin comment. How do I do that?