Skip to content

ActionController::UnpermittedParameters: found unpermitted parameters: #47

@kevincraig

Description

@kevincraig

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" } ] } },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions