Last active
December 13, 2017 13:08
-
-
Save sirramongabriel/6ef938694568b4eb0ba7bf770f210895 to your computer and use it in GitHub Desktop.
Server Logs for Post
This file contains hidden or 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
| Started POST "/residents/25/medical_record_forms" for 127.0.0.1 at 2017-12-13 08:07:28 -0500 | |
| Processing by MedicalRecordFormsController#create as HTML | |
| Parameters: {"utf8"=>"✓", "authenticity_token"=>"jVYwaGdErwFowS4kTRhp9yrLBcW0OHKY+r0vuIuVxd4a6jaE8AQxpHqv9xBUWIamOpV/UoB58rq2vWnZcnLN0w==", "medical_record_form"=>{"medications_attributes"=>{"1"=>{"medical_record_form_id"=>"", "name"=>"Chlorthalidone", "dosage"=>"35mg", "time_taken(1i)"=>"1", "time_taken(2i)"=>"1", "time_taken(3i)"=>"1", "time_taken(4i)"=>"", "time_taken(5i)"=>"", "usage_type"=>"PRN", "_destroy"=>"false", "id"=>"241"}, "2"=>{"medical_record_form_id"=>"", "name"=>"Aspirin", "dosage"=>"80mg", "time_taken(1i)"=>"1", "time_taken(2i)"=>"1", "time_taken(3i)"=>"1", "time_taken(4i)"=>"", "time_taken(5i)"=>"", "usage_type"=>"Scheduled", "_destroy"=>"false", "id"=>"242"}, "3"=>{"medical_record_form_id"=>"", "name"=>"Palamadone", "dosage"=>"75mg", "time_taken(1i)"=>"1", "time_taken(2i)"=>"1", "time_taken(3i)"=>"1", "time_taken(4i)"=>"", "time_taken(5i)"=>"", "usage_type"=>"Scheduled", "_destroy"=>"false", "id"=>"246"}, "4"=>{"medical_record_form_id"=>"", "name"=>"Tramadal", "dosage"=>"75mg", "time_taken(1i)"=>"1", "time_taken(2i)"=>"1", "time_taken(3i)"=>"1", "time_taken(4i)"=>"", "time_taken(5i)"=>"", "usage_type"=>"Scheduled", "_destroy"=>"false", "id"=>"247"}, "5"=>{"medical_record_form_id"=>"", "name"=>"Atenalol", "dosage"=>"75mg", "time_taken(1i)"=>"1", "time_taken(2i)"=>"1", "time_taken(3i)"=>"1", "time_taken(4i)"=>"", "time_taken(5i)"=>"", "usage_type"=>"PRN", "_destroy"=>"false", "id"=>"248"}, "6"=>{"medical_record_form_id"=>"", "name"=>"Methodone", "dosage"=>"1g", "time_taken(1i)"=>"1", "time_taken(2i)"=>"1", "time_taken(3i)"=>"1", "time_taken(4i)"=>"", "time_taken(5i)"=>"", "usage_type"=>"Scheduled", "_destroy"=>"false", "id"=>"249"}}}, "commit"=>"Complete!", "resident_id"=>"25"} | |
| Employee Load (0.5ms) SELECT "employees".* FROM "employees" WHERE "employees"."id" = $1 LIMIT 1 [["id", 1]] | |
| Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] | |
| CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] | |
| Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 ORDER BY "accounts"."id" ASC LIMIT 1 [["id", 1]] | |
| CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] | |
| CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 ORDER BY "accounts"."id" ASC LIMIT 1 [["id", 1]] | |
| Resident Load (0.5ms) SELECT "residents".* FROM "residents" WHERE "residents"."account_id" = 1 AND "residents"."account_id" = $1 AND "residents"."id" = $2 ORDER BY "residents"."id" ASC LIMIT 1 [["account_id", 1], ["id", 25]] | |
| CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] | |
| CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 ORDER BY "accounts"."id" ASC LIMIT 1 [["id", 1]] | |
| CACHE (0.0ms) SELECT "residents".* FROM "residents" WHERE "residents"."account_id" = 1 AND "residents"."account_id" = $1 AND "residents"."id" = $2 ORDER BY "residents"."id" ASC LIMIT 1 [["account_id", 1], ["id", "25"]] | |
| CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] | |
| CACHE (0.0ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 ORDER BY "accounts"."id" ASC LIMIT 1 [["id", 1]] | |
| CACHE (0.0ms) SELECT "residents".* FROM "residents" WHERE "residents"."account_id" = 1 AND "residents"."account_id" = $1 AND "residents"."id" = $2 ORDER BY "residents"."id" ASC LIMIT 1 [["account_id", 1], ["id", "25"]] | |
| (0.2ms) BEGIN | |
| (0.1ms) ROLLBACK | |
| Completed 404 Not Found in 20ms (ActiveRecord: 1.9ms) | |
| ActiveRecord::RecordNotFound - Couldn't find Medication with ID=241 for MedicalRecordForm with ID=: | |
| app/controllers/medical_record_forms_controller.rb:25:in `create' | |
| Started POST "/__better_errors/61f2112aade2961d/variables" for 127.0.0.1 at 2017-12-13 08:07:28 -0500 | |
| Medication Load (0.7ms) SELECT "medications".* FROM "medications" WHERE "medications"."resident_id" = $1 [["resident_id", 25]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment