-
Notifications
You must be signed in to change notification settings - Fork 29
Description
I am getting the error ActionController::UnpermittedParameters: found unpermitted parameters: when doing a post to our API.
Currently, I have Application.rb setup as follows:
config.middleware.use OliveBranch::Middleware, inflection: 'camel', content_type_check: -> (content_type) { true }
All of my GET requests work fine, so far every POST is failing with the error except my login endpoint, I'm digging through that to see if I can find a difference that would cause this issue.
This is from the logs on the request so I can see that it is converting it to snake case. I have this happening on multiple controllers.
:params => { "appointment" => { "address_id" => "22", "start_at" => "2021-06-18T17:30:00", "origin" => "paw", "appointment_vehicles_attributes" => [ { "package_id" => "18", "upgrade_ids" => [ "2", "3" ], "vehicle_id" => "1" } ] } },