using the jsonapi-utils gives us a helper resource_params which will include all permitted data from active record params. Having a custom route for post, makes resource_params an empty hash.
jsonapi-utils
resource_params
post
Is it possible to have the resource_params for a custom action?
jsonapi_resources :token_validation, only: :create do post :for_password, on: :collection end
2.1m questions
2.1m answers
60 comments
57.0k users