Skip to content

Instantly share code, notes, and snippets.

View Ademola101's full-sized avatar
🏠
Grinding

Ademola Ogunmokun Ademola101

🏠
Grinding
View GitHub Profile
@Ademola101
Ademola101 / Description.txt
Last active March 24, 2022 10:46
I am having problems with this nested form. It is saying unpermitted params
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"} }
@Ademola101
Ademola101 / nigeria-state-and-lgas.json
Created April 28, 2024 12:24 — forked from devhammed/nigeria-state-and-lgas.json
Nigeria States and LGAs in one JSON file
[
{
"state": "Adamawa",
"alias": "adamawa",
"lgas": [
"Demsa",
"Fufure",
"Ganye",
"Gayuk",
"Gombi",