This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"state": "Adamawa", | |
"alias": "adamawa", | |
"lgas": [ | |
"Demsa", | |
"Fufure", | |
"Ganye", | |
"Gayuk", | |
"Gombi", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am trying to have a nested forms between these model. | |
I want User to be able to create a group. | |
The user can also create Patient as well as assign it to group. | |
I am having this error whrn I try to do that in the nested form | |
Unpermitted parameters: :patients_groups, :patient_groups_id. Context: { controller: PatientsController, action: create, request: #<ActionDispatch::Request:0x0000025a4c3497b8>, params: {"authenticity_token"=>"[FILTERED]", "patient"=>{"patient_creator_id"=>"5", "name"=>"werey", "amount"=>"1234", "patients_groups"=>{"name"=>"fff", "icon"=>""}, "patient_groups_id"=>"1"}, "commit"=>"Create Patient", "controller"=>"patients", "action"=>"create"} } |