spec/dummy/log/development.log in cookbook-0.1.4 vs spec/dummy/log/development.log in cookbook-0.1.5

- old
+ new

@@ -6651,5 +6651,1085 @@  (1.5ms) SELECT sqlite_version(*) Recipe Load (0.1ms) SELECT "recipes".* FROM "recipes" ORDER BY "recipes"."id" ASC LIMIT ? [["LIMIT", 1]] Cookbook::Use Load (0.3ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? ORDER BY "cookbook_uses"."id" ASC LIMIT ? [["use_in_id", 1], ["use_in_type", "Recipe"], ["LIMIT", 1]] Recipe Load (0.4ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 08:52:49 -0600 +  (2.5ms) SELECT sqlite_version(*) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"published"=>"1", "name"=>"test", "excerpt"=>"", "description"=>"", "tag_list"=>"", "ingredient_uses_attributes"=>{"1632233358506"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"1", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"1632233361563"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Can't verify CSRF token authenticity. +Completed 422 Unprocessable Entity in 8ms (ActiveRecord: 0.0ms | Allocations: 523) + + + +ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): + +actionpack (6.1.4.1) lib/action_controller/metal/request_forgery_protection.rb:211:in `handle_unverified_request' +actionpack (6.1.4.1) lib/action_controller/metal/request_forgery_protection.rb:243:in `handle_unverified_request' +devise (4.8.0) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request' +actionpack (6.1.4.1) lib/action_controller/metal/request_forgery_protection.rb:238:in `verify_authenticity_token' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:427:in `block in make_lambda' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:198:in `block (2 levels) in halting' +actionpack (6.1.4.1) lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:199:in `block in halting' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:512:in `block in invoke_before' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:512:in `each' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:512:in `invoke_before' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:115:in `block in run_callbacks' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:137:in `run_callbacks' +actionpack (6.1.4.1) lib/abstract_controller/callbacks.rb:41:in `process_action' +actionpack (6.1.4.1) lib/action_controller/metal/rescue.rb:22:in `process_action' +actionpack (6.1.4.1) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' +activesupport (6.1.4.1) lib/active_support/notifications.rb:203:in `block in instrument' +activesupport (6.1.4.1) lib/active_support/notifications/instrumenter.rb:24:in `instrument' +activesupport (6.1.4.1) lib/active_support/notifications.rb:203:in `instrument' +actionpack (6.1.4.1) lib/action_controller/metal/instrumentation.rb:33:in `process_action' +actionpack (6.1.4.1) lib/action_controller/metal/params_wrapper.rb:249:in `process_action' +activerecord (6.1.4.1) lib/active_record/railties/controller_runtime.rb:27:in `process_action' +actionpack (6.1.4.1) lib/abstract_controller/base.rb:165:in `process' +actionview (6.1.4.1) lib/action_view/rendering.rb:39:in `process' +actionpack (6.1.4.1) lib/action_controller/metal.rb:190:in `dispatch' +actionpack (6.1.4.1) lib/action_controller/metal.rb:254:in `dispatch' +actionpack (6.1.4.1) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' +actionpack (6.1.4.1) lib/action_dispatch/routing/route_set.rb:33:in `serve' +actionpack (6.1.4.1) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (6.1.4.1) lib/action_dispatch/journey/router.rb:32:in `each' +actionpack (6.1.4.1) lib/action_dispatch/journey/router.rb:32:in `serve' +actionpack (6.1.4.1) lib/action_dispatch/routing/route_set.rb:842:in `call' +warden (1.2.9) lib/warden/manager.rb:36:in `block in call' +warden (1.2.9) lib/warden/manager.rb:34:in `catch' +warden (1.2.9) lib/warden/manager.rb:34:in `call' +rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call' +rack (2.2.3) lib/rack/etag.rb:27:in `call' +rack (2.2.3) lib/rack/conditional_get.rb:40:in `call' +rack (2.2.3) lib/rack/head.rb:12:in `call' +actionpack (6.1.4.1) lib/action_dispatch/http/permissions_policy.rb:22:in `call' +actionpack (6.1.4.1) lib/action_dispatch/http/content_security_policy.rb:18:in `call' +rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context' +rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/cookies.rb:689:in `call' +activerecord (6.1.4.1) lib/active_record/migration.rb:601:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' +activesupport (6.1.4.1) lib/active_support/callbacks.rb:98:in `run_callbacks' +actionpack (6.1.4.1) lib/action_dispatch/middleware/callbacks.rb:26:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (6.1.4.1) lib/rails/rack/logger.rb:37:in `call_app' +railties (6.1.4.1) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (6.1.4.1) lib/active_support/tagged_logging.rb:99:in `block in tagged' +activesupport (6.1.4.1) lib/active_support/tagged_logging.rb:37:in `tagged' +activesupport (6.1.4.1) lib/active_support/tagged_logging.rb:99:in `tagged' +railties (6.1.4.1) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.2) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/request_id.rb:26:in `call' +rack (2.2.3) lib/rack/method_override.rb:24:in `call' +rack (2.2.3) lib/rack/runtime.rb:22:in `call' +activesupport (6.1.4.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/static.rb:24:in `call' +rack (2.2.3) lib/rack/sendfile.rb:110:in `call' +actionpack (6.1.4.1) lib/action_dispatch/middleware/host_authorization.rb:98:in `call' +railties (6.1.4.1) lib/rails/engine.rb:539:in `call' +puma (4.3.8) lib/puma/configuration.rb:228:in `call' +puma (4.3.8) lib/puma/server.rb:718:in `handle_request' +puma (4.3.8) lib/puma/server.rb:472:in `process_client' +puma (4.3.8) lib/puma/server.rb:328:in `block in run' +puma (4.3.8) lib/puma/thread_pool.rb:134:in `block in spawn_thread' +Started GET "/recipes" for 127.0.0.1 at 2021-09-21 08:52:54 -0600 +Processing by RecipesController#index as HTML + Rendering layout layouts/application.html.erb + Rendering recipes/index.html.haml within layouts/application + Recipe Load (2.1ms) SELECT "recipes".* FROM "recipes" + ↳ app/views/recipes/index.html.haml:16 + Rendered recipes/index.html.haml within layouts/application (Duration: 37.3ms | Allocations: 10421) + Rendered layout layouts/application.html.erb (Duration: 92.2ms | Allocations: 20443) +Completed 200 OK in 191ms (Views: 94.9ms | ActiveRecord: 2.7ms | Allocations: 40523) + + +Started GET "/recipes/new" for 127.0.0.1 at 2021-09-21 08:52:57 -0600 +Processing by RecipesController#new as HTML + Rendering layout layouts/application.html.erb + Rendering recipes/new.html.haml within layouts/application + Ingredient Load (2.3ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 100.6ms | Allocations: 19910) + Tool Load (0.4ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 47.8ms | Allocations: 15485) + Supply Load (2.3ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 52.6ms | Allocations: 15483) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 227.9ms | Allocations: 64291) + Rendered recipes/_form.html.haml (Duration: 2974.0ms | Allocations: 1187172) + Rendered recipes/new.html.haml within layouts/application (Duration: 2978.5ms | Allocations: 1188434) + Rendered layout layouts/application.html.erb (Duration: 2982.0ms | Allocations: 1189696) +Completed 200 OK in 2984ms (Views: 2973.7ms | ActiveRecord: 9.2ms | Allocations: 1190120) + + +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 08:53:21 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"1632235992224"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"1", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"1632235995425"=>{"use_of_type"=>"Tool", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"1632235997976"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Rendering layout layouts/application.html.erb + Rendering recipes/new.html.haml within layouts/application + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 29.9ms | Allocations: 12253) + CACHE Ingredient Load (0.0ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 36.8ms | Allocations: 13801) + Tool Load (0.2ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 30.8ms | Allocations: 12082) + CACHE Tool Load (0.0ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 33.8ms | Allocations: 12085) + Supply Load (0.2ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 38.0ms | Allocations: 12084) + CACHE Supply Load (0.0ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 40.2ms | Allocations: 12083) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 217.9ms | Allocations: 78475) + Rendered recipes/_form.html.haml (Duration: 234.0ms | Allocations: 85435) + Rendered recipes/new.html.haml within layouts/application (Duration: 234.5ms | Allocations: 85529) + Rendered layout layouts/application.html.erb (Duration: 237.2ms | Allocations: 86789) +Completed 200 OK in 258ms (Views: 237.3ms | ActiveRecord: 0.9ms | Allocations: 91737) + + +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 08:57:28 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 37ms (Allocations: 17398) + + + +SystemExit ({:ingredient_uses_attributes=>[:id, :_destroy, :use_of_type, :use_of_id, :quantity_minimum, :quantity_maximum, :unit, :preparation, :note, :sort], :tool_uses_attributes=>[:id, :_destroy, :use_of_type, :use_of_id, :quantity_minimum, :quantity_maximum, :unit, :preparation, :note, :sort], :supply_uses_attributes=>[:id, :_destroy, :use_of_type, :use_of_id, :quantity_minimum, :quantity_maximum, :unit, :preparation, :note, :sort]}): + +app/controllers/recipes_controller.rb:59:in `recipe_params' +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:00:08 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 95ms (Allocations: 17999) + + + +SystemExit (#<ActionController::Parameters {"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>#<ActionController::Parameters {"0"=>#<ActionController::Parameters {"_destroy"=>"0", "use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "preparation"=>"", "note"=>"", "sort"=>""} permitted: true>} permitted: true>, "tool_uses_attributes"=>#<ActionController::Parameters {"0"=>#<ActionController::Parameters {"_destroy"=>"0", "use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "preparation"=>"", "note"=>"", "sort"=>""} permitted: true>} permitted: true>, "supply_uses_attributes"=>#<ActionController::Parameters {"0"=>#<ActionController::Parameters {"_destroy"=>"0", "use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "preparation"=>"", "note"=>"", "sort"=>""} permitted: true>} permitted: true>} permitted: true>): + +app/controllers/recipes_controller.rb:26:in `abort' +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:01:51 -0600 +  (2.5ms) SELECT sqlite_version(*) +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Unpermitted parameters: :ingredient_uses_attributes, :tool_uses_attributes, :supply_uses_attributes +Completed 500 Internal Server Error in 93ms (ActiveRecord: 0.0ms | Allocations: 19628) + + + +SystemExit (#<ActionController::Parameters {"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste"} permitted: true>): + +app/controllers/recipes_controller.rb:26:in `abort' +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:02:28 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 89ms (Allocations: 17407) + + + +SystemExit ({:ingredient_uses_attributes=>[:id, :_destroy, :use_of_type, :use_of_id, :quantity_minimum, :quantity_maximum, :unit, :preparation, :note, :sort], :tool_uses_attributes=>[:id, :_destroy, :use_of_type, :use_of_id, :quantity_minimum, :quantity_maximum, :unit, :preparation, :note, :sort], :supply_uses_attributes=>[:id, :_destroy, :use_of_type, :use_of_id, :quantity_minimum, :quantity_maximum, :unit, :preparation, :note, :sort]}): + +app/controllers/recipes_controller.rb:60:in `recipe_params' +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:03:29 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 47ms (Allocations: 17999) + + + +SystemExit (#<ActionController::Parameters {"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>#<ActionController::Parameters {"0"=>#<ActionController::Parameters {"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "preparation"=>"", "note"=>"", "sort"=>"", "_destroy"=>"0"} permitted: true>} permitted: true>, "tool_uses_attributes"=>#<ActionController::Parameters {"0"=>#<ActionController::Parameters {"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "preparation"=>"", "note"=>"", "sort"=>"", "_destroy"=>"0"} permitted: true>} permitted: true>, "supply_uses_attributes"=>#<ActionController::Parameters {"0"=>#<ActionController::Parameters {"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "preparation"=>"", "note"=>"", "sort"=>"", "_destroy"=>"0"} permitted: true>} permitted: true>} permitted: true>): + +app/controllers/recipes_controller.rb:26:in `abort' +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:04:11 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +  (0.1ms) SELECT sqlite_version(*) + ↳ app/controllers/recipes_controller.rb:26:in `create' + Rendering layout layouts/application.html.erb + Rendering recipes/new.html.haml within layouts/application + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 71.2ms | Allocations: 19747) + CACHE Ingredient Load (0.0ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 46.1ms | Allocations: 13796) + Tool Load (0.4ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 42.9ms | Allocations: 15483) + CACHE Tool Load (0.0ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 34.4ms | Allocations: 12085) + Supply Load (0.4ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 49.6ms | Allocations: 15481) + CACHE Supply Load (0.0ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 34.9ms | Allocations: 12083) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 311.5ms | Allocations: 100216) + Rendered recipes/_form.html.haml (Duration: 3431.2ms | Allocations: 1219623) + Rendered recipes/new.html.haml within layouts/application (Duration: 3435.2ms | Allocations: 1222382) + Rendered layout layouts/application.html.erb (Duration: 3438.4ms | Allocations: 1224021) +Completed 200 OK in 3545ms (Views: 3436.4ms | ActiveRecord: 7.1ms | Allocations: 1262397) + + +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:04:27 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +  (0.1ms) SELECT sqlite_version(*) + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 85ms (ActiveRecord: 2.8ms | Allocations: 31590) + + + +SystemExit (): + +app/controllers/recipes_controller.rb:28:in `abort' +app/controllers/recipes_controller.rb:28:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:04:42 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +  (0.2ms) SELECT sqlite_version(*) + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 139ms (ActiveRecord: 3.3ms | Allocations: 35251) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:08:19 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.0ms | Allocations: 5436) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:08:34 -0600 +  (2.5ms) SELECT sqlite_version(*) +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 2969ms (ActiveRecord: 2.2ms | Allocations: 1141419) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:09:08 -0600 +  (1.4ms) SELECT sqlite_version(*) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 2443ms (ActiveRecord: 1.7ms | Allocations: 1141419) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:12:56 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.0ms | Allocations: 5451) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:13:11 -0600 +  (2.5ms) SELECT sqlite_version(*) +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 2541ms (ActiveRecord: 2.2ms | Allocations: 1141401) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:15:39 -0600 +  (3.8ms) SELECT sqlite_version(*) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 404 Not Found in 218ms (ActiveRecord: 3.4ms | Allocations: 38643) + + + +ActiveRecord::RecordNotFound (Couldn't find Ingredient without an ID): + +app/controllers/recipes_controller.rb:28:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:15:59 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 404 Not Found in 11ms (ActiveRecord: 0.0ms | Allocations: 2399) + + + +ActiveRecord::RecordNotFound (Couldn't find Ingredient without an ID): + +app/controllers/recipes_controller.rb:28:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:16:45 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +  (0.2ms) SELECT sqlite_version(*) + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 144ms (ActiveRecord: 4.1ms | Allocations: 31828) + + + +SystemExit ([nil, "Ingredient"]): + +app/controllers/recipes_controller.rb:28:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:17:12 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +  (0.1ms) SELECT sqlite_version(*) + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 98ms (ActiveRecord: 2.9ms | Allocations: 31818) + + + +SystemExit ({"id"=>nil, "published"=>true, "use_in_type"=>"Recipe", "use_in_id"=>nil, "use_of_type"=>"Ingredient", "use_of_id"=>nil, "quantity_minimum"=>nil, "quantity_maximum"=>nil, "unit"=>"", "sort"=>nil, "note"=>"", "preparation"=>"", "created_at"=>nil, "updated_at"=>nil}): + +app/controllers/recipes_controller.rb:28:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:21:23 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +  (0.2ms) SELECT sqlite_version(*) + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 2975ms (ActiveRecord: 2.9ms | Allocations: 1135326) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:21:43 -0600 +  (1.4ms) SELECT sqlite_version(*) +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 2620ms (ActiveRecord: 2.3ms | Allocations: 1141482) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:22:12 -0600 +  (2.8ms) SELECT sqlite_version(*) +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +Completed 500 Internal Server Error in 2436ms (ActiveRecord: 1.3ms | Allocations: 1141484) + + + +SystemExit (Ingredient uses use in must exist, Ingredient uses use of must exist, Tool uses use in must exist, Tool uses use of must exist, Supply uses use in must exist, and Supply uses use of must exist): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:25:24 -0600 +  (2.9ms) SELECT sqlite_version(*) +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 134ms (ActiveRecord: 2.5ms | Allocations: 31804) + + + +NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055e4c9462ea0> +Did you mean? uses_attributes=): + +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:25:44 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.8ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 74ms (ActiveRecord: 0.8ms | Allocations: 3410) + + + +NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055e4c79fb300> +Did you mean? uses_attributes=): + +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:26:08 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 45ms (ActiveRecord: 0.3ms | Allocations: 3406) + + + +NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055e4c7a724f0> +Did you mean? uses_attributes=): + +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:26:24 -0600 +  (2.2ms) SELECT sqlite_version(*) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 104ms (ActiveRecord: 2.5ms | Allocations: 33000) + + + +ActiveRecord::AssociationTypeMismatch (Cookbook::Use(#47304618768820) expected, got {"_destroy"=>"0", "use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "preparation"=>"", "note"=>"", "sort"=>"", "use_in"=>#<Recipe id: nil, name: "atest", description: "test", serves: "test", meal: "test", instructions: "teste", created_at: nil, updated_at: nil>, "use_of"=>#<Ingredient id: 2, name: "Autem Quae Perferendis", description: "Velit quis rerum. Ut corrupti dolores. Quia porro ...", aisle: "Produce", store: "WholeEats", cost: "$1.99", created_at: "2021-09-10 15:44:04.068851000 +0000", updated_at: "2021-09-10 15:44:04.068851000 +0000">} which is an instance of ActiveSupport::HashWithIndifferentAccess(#47304585472640)): + +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:28:42 -0600 +  (2.0ms) SELECT sqlite_version(*) +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 161ms (ActiveRecord: 2.1ms | Allocations: 31806) + + + +NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055740528f478> +Did you mean? uses_attributes=): + +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:31:37 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.3ms | Allocations: 3407) + + + +NoMethodError (undefined method `uses_attributes' for #<Recipe:0x00005574057d6e68> +Did you mean? uses_attributes=): + +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:31:52 -0600 +  (2.4ms) SELECT sqlite_version(*) +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 103ms (ActiveRecord: 1.9ms | Allocations: 31806) + + + +NoMethodError (undefined method `uses_attributes' for #<Recipe:0x00005639bd32a710> +Did you mean? uses_attributes=): + +app/controllers/recipes_controller.rb:26:in `create' +  (3.8ms) SELECT sqlite_version(*) + Recipe Load (0.5ms) SELECT "recipes".* FROM "recipes" ORDER BY "recipes"."id" ASC LIMIT ? [["LIMIT", 1]] + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" ORDER BY "recipes"."id" ASC LIMIT ? [["LIMIT", 1]] +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:32:43 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.3ms | Allocations: 3410) + + + +NoMethodError (undefined method `uses_attributes' for #<Recipe:0x00005639bb8488e8> +Did you mean? uses_attributes=): + +app/controllers/recipes_controller.rb:26:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:32:58 -0600 +  (2.8ms) SELECT sqlite_version(*) +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' + Tool Load (0.3ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' + Supply Load (0.2ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' +Completed 500 Internal Server Error in 2798ms (ActiveRecord: 5.9ms | Allocations: 1150301) + + + +SystemExit (): + +app/controllers/recipes_controller.rb:29:in `abort' +app/controllers/recipes_controller.rb:29:in `create' +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:33:14 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"3", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} +  (0.2ms) SELECT sqlite_version(*) + ↳ app/controllers/recipes_controller.rb:26:in `create' + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' + Tool Load (0.4ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' + Supply Load (0.4ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' + TRANSACTION (0.1ms) begin transaction + ↳ app/controllers/recipes_controller.rb:28:in `create' + Recipe Create (5.8ms) INSERT INTO "recipes" ("name", "description", "serves", "meal", "instructions", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "atest"], ["description", "test"], ["serves", "test"], ["meal", "test"], ["instructions", "teste"], ["created_at", "2021-09-21 15:33:16.312933"], ["updated_at", "2021-09-21 15:33:16.312933"]] + ↳ app/controllers/recipes_controller.rb:28:in `create' + Cookbook::Use Create (3.4ms) INSERT INTO "cookbook_uses" ("use_in_type", "use_in_id", "use_of_type", "use_of_id", "unit", "note", "preparation", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["use_in_type", "Recipe"], ["use_in_id", 6], ["use_of_type", "Ingredient"], ["use_of_id", 2], ["unit", ""], ["note", ""], ["preparation", ""], ["created_at", "2021-09-21 15:33:16.337935"], ["updated_at", "2021-09-21 15:33:16.337935"]] + ↳ app/controllers/recipes_controller.rb:28:in `create' + Cookbook::Use Create (0.3ms) INSERT INTO "cookbook_uses" ("use_in_type", "use_in_id", "use_of_type", "use_of_id", "unit", "note", "preparation", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["use_in_type", "Recipe"], ["use_in_id", 6], ["use_of_type", "Tool"], ["use_of_id", 4], ["unit", ""], ["note", ""], ["preparation", ""], ["created_at", "2021-09-21 15:33:16.355066"], ["updated_at", "2021-09-21 15:33:16.355066"]] + ↳ app/controllers/recipes_controller.rb:28:in `create' + Cookbook::Use Create (0.4ms) INSERT INTO "cookbook_uses" ("use_in_type", "use_in_id", "use_of_type", "use_of_id", "unit", "note", "preparation", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["use_in_type", "Recipe"], ["use_in_id", 6], ["use_of_type", "Supply"], ["use_of_id", 3], ["unit", ""], ["note", ""], ["preparation", ""], ["created_at", "2021-09-21 15:33:16.369938"], ["updated_at", "2021-09-21 15:33:16.369938"]] + ↳ app/controllers/recipes_controller.rb:28:in `create' + TRANSACTION (12.7ms) commit transaction + ↳ app/controllers/recipes_controller.rb:28:in `create' +Redirected to http://localhost:3000/recipes/6 +Completed 302 Found in 836ms (ActiveRecord: 65.3ms | Allocations: 48386) + + +Started GET "/recipes/6" for 127.0.0.1 at 2021-09-21 09:33:16 -0600 +Processing by RecipesController#show as HTML + Parameters: {"id"=>"6"} + Recipe Load (7.0ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/show.html.haml within layouts/application + Cookbook::Use Exists? (0.4ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Load (0.4ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"]] + ↳ app/views/recipes/show.html.haml:19 + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Exists? (0.3ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Tool"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Load (0.2ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Tool"]] + ↳ app/views/recipes/show.html.haml:19 + Tool Load (0.3ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Exists? (0.4ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Supply"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Load (0.3ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Supply"]] + ↳ app/views/recipes/show.html.haml:19 + Supply Load (20.2ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Rendered /home/loren/Code/cookbook/app/views/cookbook/_used_in.html.haml (Duration: 145.4ms | Allocations: 11092) + Rendered recipes/show.html.haml within layouts/application (Duration: 173.1ms | Allocations: 16116) + Rendered layout layouts/application.html.erb (Duration: 239.3ms | Allocations: 22176) +Completed 200 OK in 278ms (Views: 243.4ms | ActiveRecord: 29.8ms | Allocations: 23991) + + +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:33:21 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 53.3ms | Allocations: 15666) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 63.1ms | Allocations: 22164) + Rendered recipes/_form.html.haml (Duration: 117.5ms | Allocations: 41301) + Rendered recipes/edit.html.haml within layouts/application (Duration: 121.1ms | Allocations: 42617) + Rendered layout layouts/application.html.erb (Duration: 121.5ms | Allocations: 42688) +Completed 500 Internal Server Error in 125ms (ActiveRecord: 0.4ms | Allocations: 43507) + + + +ActionView::Template::Error (undefined method `[]' for nil:NilClass): + 5: %fieldset.used_in{class: usable.plural_class} + 6: %legend + 7: %h3= usable.title + 8: = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action' + 9: %div{id: usable.plural_class} + 10: = form.fields_for usable.uses_sym do |g| + 11: = render 'cookbook/uses/fields', form: g, usable: usable + +app/views/recipes/_form.html.haml:8 +app/views/recipes/_form.html.haml:2 +app/views/recipes/edit.html.haml:3 +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:33:51 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 40.2ms | Allocations: 12495) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 49.0ms | Allocations: 15880) + Rendered recipes/_form.html.haml (Duration: 68.4ms | Allocations: 22609) + Rendered recipes/edit.html.haml within layouts/application (Duration: 68.7ms | Allocations: 22680) + Rendered layout layouts/application.html.erb (Duration: 68.9ms | Allocations: 22751) +Completed 500 Internal Server Error in 71ms (ActiveRecord: 0.4ms | Allocations: 23436) + + + +ActionView::Template::Error (undefined method `[]' for nil:NilClass): + 5: %fieldset.used_in{class: usable.plural_class} + 6: %legend + 7: %h3= usable.title + 8: = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action' + 9: %div{id: usable.plural_class} + 10: = form.fields_for usable.uses_sym do |g| + 11: = render 'cookbook/uses/fields', form: g, usable: usable + +app/views/recipes/_form.html.haml:8 +app/views/recipes/_form.html.haml:2 +app/views/recipes/edit.html.haml:3 +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:36:54 -0600 +  (1.9ms) SELECT sqlite_version(*) +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} +Completed 500 Internal Server Error in 51ms (ActiveRecord: 0.0ms | Allocations: 6388) + + + +NoMethodError (undefined method `use_of=' for #<Class:0x0000558a1145b9b0>): + +app/models/ingredient.rb:4:in `<class:Ingredient>' +app/models/ingredient.rb:3:in `<top (required)>' +app/models/recipe.rb:4:in `<class:Recipe>' +app/models/recipe.rb:3:in `<top (required)>' +app/controllers/recipes_controller.rb:54:in `set_recipe' +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:37:44 -0600 +  (1.5ms) SELECT sqlite_version(*) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.4ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 76.2ms | Allocations: 19910) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 113.7ms | Allocations: 38100) + Rendered recipes/_form.html.haml (Duration: 2971.2ms | Allocations: 1160732) + Rendered recipes/edit.html.haml within layouts/application (Duration: 2975.9ms | Allocations: 1163764) + Rendered layout layouts/application.html.erb (Duration: 2976.2ms | Allocations: 1163839) +Completed 500 Internal Server Error in 3069ms (ActiveRecord: 3.7ms | Allocations: 1190786) + + + +ActionView::Template::Error (undefined method `[]' for nil:NilClass): + 5: %fieldset.used_in{class: usable.plural_class} + 6: %legend + 7: %h3= usable.title + 8: = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action' + 9: %div{id: usable.plural_class} + 10: = form.fields_for usable.uses_sym do |g| + 11: = render 'cookbook/uses/fields', form: g, usable: usable + +app/views/recipes/_form.html.haml:8 +app/views/recipes/_form.html.haml:2 +app/views/recipes/edit.html.haml:3 +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:38:30 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 2.6ms | Allocations: 1104) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 15.6ms | Allocations: 7317) + Rendered recipes/_form.html.haml (Duration: 49.8ms | Allocations: 15832) + Rendered recipes/edit.html.haml within layouts/application (Duration: 53.0ms | Allocations: 17147) + Rendered layout layouts/application.html.erb (Duration: 53.2ms | Allocations: 17218) +Completed 500 Internal Server Error in 59ms (ActiveRecord: 0.3ms | Allocations: 18833) + + + +ActionView::Template::Error (undefined method `[]' for nil:NilClass): + 5: %fieldset.used_in{class: usable.plural_class} + 6: %legend + 7: %h3= usable.title + 8: = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action' + 9: %div{id: usable.plural_class} + 10: = form.fields_for usable.uses_sym do |g| + 11: = render 'cookbook/uses/fields', form: g, usable: usable + +app/views/recipes/_form.html.haml:8 +app/views/recipes/_form.html.haml:2 +app/views/recipes/edit.html.haml:3 +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:38:45 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 6.2ms | Allocations: 3788) + Rendered recipes/_form.html.haml (Duration: 49.3ms | Allocations: 12827) + Rendered recipes/edit.html.haml within layouts/application (Duration: 62.4ms | Allocations: 14197) + Rendered layout layouts/application.html.erb (Duration: 65.8ms | Allocations: 15832) +Completed 200 OK in 78ms (Views: 74.9ms | ActiveRecord: 0.2ms | Allocations: 17476) + + +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:39:11 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 7.3ms | Allocations: 4514) + Rendered recipes/_form.html.haml (Duration: 34.7ms | Allocations: 13454) + Rendered recipes/edit.html.haml within layouts/application (Duration: 38.1ms | Allocations: 14817) + Rendered layout layouts/application.html.erb (Duration: 40.9ms | Allocations: 16266) +Completed 200 OK in 47ms (Views: 43.8ms | ActiveRecord: 0.2ms | Allocations: 17894) + + +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:39:29 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 5.9ms | Allocations: 4697) + Rendered recipes/_form.html.haml (Duration: 34.5ms | Allocations: 13641) + Rendered recipes/edit.html.haml within layouts/application (Duration: 37.6ms | Allocations: 15004) + Rendered layout layouts/application.html.erb (Duration: 40.4ms | Allocations: 16452) +Completed 200 OK in 46ms (Views: 43.5ms | ActiveRecord: 0.2ms | Allocations: 18062) + + +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:39:46 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 45.8ms | Allocations: 14191) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 56.4ms | Allocations: 19799) + Rendered recipes/_form.html.haml (Duration: 84.6ms | Allocations: 28252) + Rendered recipes/edit.html.haml within layouts/application (Duration: 100.3ms | Allocations: 29563) + Rendered layout layouts/application.html.erb (Duration: 100.6ms | Allocations: 29633) +Completed 500 Internal Server Error in 107ms (ActiveRecord: 0.5ms | Allocations: 31223) + + + +ActionView::Template::Error (undefined method `[]' for nil:NilClass): + 5: %fieldset.used_in{class: usable.plural_class} + 6: %legend + 7: %h3= usable.title + 8: = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action' + 9: -# %div{id: usable.plural_class} + 10: -# = form.fields_for usable.uses_sym do |g| + 11: -# = render 'cookbook/uses/fields', form: g, usable: usable + +app/views/recipes/_form.html.haml:8 +app/views/recipes/_form.html.haml:2 +app/views/recipes/edit.html.haml:3 +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:40:55 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 35.3ms | Allocations: 14198) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 44.0ms | Allocations: 20053) + Rendered recipes/_form.html.haml (Duration: 65.9ms | Allocations: 28551) + Rendered recipes/edit.html.haml within layouts/application (Duration: 69.5ms | Allocations: 29865) + Rendered layout layouts/application.html.erb (Duration: 69.7ms | Allocations: 29935) +Completed 500 Internal Server Error in 79ms (ActiveRecord: 0.5ms | Allocations: 31532) + + + +ActionView::Template::Error (undefined method `[]' for nil:NilClass): + 8: = usable.uses_sym.inspect + 9: = usable.plural_class + 10: #{usable.singular_title} + 11: = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action' + 12: -# %div{id: usable.plural_class} + 13: -# = form.fields_for usable.uses_sym do |g| + 14: -# = render 'cookbook/uses/fields', form: g, usable: usable + +app/views/recipes/_form.html.haml:8 +app/views/recipes/_form.html.haml:2 +app/views/recipes/edit.html.haml:3 +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:41:02 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 9.2ms | Allocations: 5034) + Rendered recipes/_form.html.haml (Duration: 133.3ms | Allocations: 14011) + Rendered recipes/edit.html.haml within layouts/application (Duration: 140.4ms | Allocations: 15374) + Rendered layout layouts/application.html.erb (Duration: 143.8ms | Allocations: 16829) +Completed 200 OK in 160ms (Views: 150.0ms | ActiveRecord: 0.2ms | Allocations: 18438) + + +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:41:28 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Cookbook::Use Load (0.3ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"]] + ↳ app/views/recipes/_form.html.haml:8 + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 43.9ms | Allocations: 14189) + Cookbook::Use Load (0.2ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Tool"]] + ↳ app/views/recipes/_form.html.haml:8 + Tool Load (0.4ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 37.9ms | Allocations: 15538) + Cookbook::Use Load (0.3ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Supply"]] + ↳ app/views/recipes/_form.html.haml:8 + Supply Load (0.3ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 38.2ms | Allocations: 15471) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 146.7ms | Allocations: 55570) + Rendered recipes/_form.html.haml (Duration: 169.3ms | Allocations: 64317) + Rendered recipes/edit.html.haml within layouts/application (Duration: 172.7ms | Allocations: 65681) + Rendered layout layouts/application.html.erb (Duration: 175.0ms | Allocations: 67129) +Completed 200 OK in 181ms (Views: 174.2ms | ActiveRecord: 3.3ms | Allocations: 68746) + + +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:41:46 -0600 +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 44.7ms | Allocations: 14160) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 55.6ms | Allocations: 20361) + Rendered recipes/_form.html.haml (Duration: 88.5ms | Allocations: 28814) + Rendered recipes/edit.html.haml within layouts/application (Duration: 95.5ms | Allocations: 30125) + Rendered layout layouts/application.html.erb (Duration: 95.8ms | Allocations: 30195) +Completed 500 Internal Server Error in 104ms (ActiveRecord: 0.4ms | Allocations: 31785) + + + +ActionView::Template::Error (undefined method `[]' for nil:NilClass): + 5: %fieldset.used_in{class: usable.plural_class} + 6: %legend + 7: %h3= usable.title + 8: = link_to_add_nested form, usable.uses_sym, "##{usable.plural_class}", partial: 'cookbook/uses/fields', link_text: "Add #{usable.singular_title}", link_classes: 'button button-action' + 9: %div{id: usable.plural_class} + 10: = form.fields_for usable.uses_sym do |g| + 11: = render 'cookbook/uses/fields', form: g, usable: usable + +app/views/recipes/_form.html.haml:8 +app/views/recipes/_form.html.haml:2 +app/views/recipes/edit.html.haml:3 +Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:42:32 -0600 +  (2.0ms) SELECT sqlite_version(*) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +Processing by RecipesController#edit as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/edit.html.haml within layouts/application + Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 68.9ms | Allocations: 19901) + Cookbook::Use Load (0.4ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"]] + ↳ app/views/recipes/_form.html.haml:8 + CACHE Ingredient Load (0.0ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 39.3ms | Allocations: 13713) + Tool Load (0.3ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 46.5ms | Allocations: 15487) + Cookbook::Use Load (0.2ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Tool"]] + ↳ app/views/recipes/_form.html.haml:8 + CACHE Tool Load (0.0ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 39.1ms | Allocations: 12008) + Supply Load (0.5ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 47.4ms | Allocations: 15483) + Cookbook::Use Load (0.4ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Supply"]] + ↳ app/views/recipes/_form.html.haml:8 + CACHE Supply Load (0.0ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 36.7ms | Allocations: 12006) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 342.1ms | Allocations: 111297) + Rendered recipes/_form.html.haml (Duration: 2906.0ms | Allocations: 1234261) + Rendered recipes/edit.html.haml within layouts/application (Duration: 2910.9ms | Allocations: 1237349) + Rendered layout layouts/application.html.erb (Duration: 2915.0ms | Allocations: 1238995) +Completed 200 OK in 3006ms (Views: 2915.2ms | ActiveRecord: 7.1ms | Allocations: 1266159) + + +Started PATCH "/recipes/6" for 127.0.0.1 at 2021-09-21 09:42:47 -0600 +Processing by RecipesController#update as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste", "ingredient_uses_attributes"=>{"0"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0", "id"=>"31"}}, "tool_uses_attributes"=>{"0"=>{"use_of_type"=>"Tool", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0", "id"=>"32"}}, "supply_uses_attributes"=>{"0"=>{"use_of_type"=>"Supply", "use_of_id"=>"4", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0", "id"=>"33"}}}, "commit"=>"Update Recipe", "id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + TRANSACTION (0.1ms) begin transaction + ↳ app/controllers/recipes_controller.rb:37:in `update' + Ingredient Load (0.5ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:37:in `update' + Cookbook::Use Load (0.3ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."id" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["id", 31]] + ↳ app/controllers/recipes_controller.rb:37:in `update' + Tool Load (0.3ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:37:in `update' + Cookbook::Use Load (0.2ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."id" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["id", 32]] + ↳ app/controllers/recipes_controller.rb:37:in `update' + Supply Load (0.3ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:37:in `update' + Cookbook::Use Load (0.1ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."id" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["id", 33]] + ↳ app/controllers/recipes_controller.rb:37:in `update' + Cookbook::Use Update (0.5ms) UPDATE "cookbook_uses" SET "use_of_id" = ?, "updated_at" = ? WHERE "cookbook_uses"."id" = ? [["use_of_id", 4], ["updated_at", "2021-09-21 15:42:47.275646"], ["id", 33]] + ↳ app/controllers/recipes_controller.rb:37:in `update' + TRANSACTION (6.3ms) commit transaction + ↳ app/controllers/recipes_controller.rb:37:in `update' +Redirected to http://localhost:3000/recipes/6 +Completed 302 Found in 44ms (ActiveRecord: 8.8ms | Allocations: 9054) + + +Started GET "/recipes/6" for 127.0.0.1 at 2021-09-21 09:42:47 -0600 +Processing by RecipesController#show as HTML + Parameters: {"id"=>"6"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/show.html.haml within layouts/application + Cookbook::Use Exists? (0.4ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Load (0.2ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"]] + ↳ app/views/recipes/show.html.haml:19 + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Exists? (0.3ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Tool"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Load (0.2ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Tool"]] + ↳ app/views/recipes/show.html.haml:19 + Tool Load (0.2ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Exists? (0.2ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Supply"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Load (0.1ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 6], ["use_in_type", "Recipe"], ["use_of_type", "Supply"]] + ↳ app/views/recipes/show.html.haml:19 + Supply Load (0.1ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Rendered /home/loren/Code/cookbook/app/views/cookbook/_used_in.html.haml (Duration: 30.7ms | Allocations: 10829) + Rendered recipes/show.html.haml within layouts/application (Duration: 42.3ms | Allocations: 14220) + Rendered layout layouts/application.html.erb (Duration: 45.5ms | Allocations: 15592) +Completed 200 OK in 49ms (Views: 44.6ms | ActiveRecord: 2.1ms | Allocations: 16410) + + +Started GET "/recipes" for 127.0.0.1 at 2021-09-21 09:42:56 -0600 +Processing by RecipesController#index as HTML + Rendering layout layouts/application.html.erb + Rendering recipes/index.html.haml within layouts/application + Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes" + ↳ app/views/recipes/index.html.haml:16 + Rendered recipes/index.html.haml within layouts/application (Duration: 6.9ms | Allocations: 4447) + Rendered layout layouts/application.html.erb (Duration: 9.7ms | Allocations: 6037) +Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms | Allocations: 6444) + + +Started GET "/recipes/new" for 127.0.0.1 at 2021-09-21 09:42:57 -0600 +Processing by RecipesController#new as HTML + Rendering layout layouts/application.html.erb + Rendering recipes/new.html.haml within layouts/application + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 37.4ms | Allocations: 12672) + Tool Load (0.3ms) SELECT "tools".* FROM "tools" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 37.3ms | Allocations: 12223) + Supply Load (0.2ms) SELECT "supplies".* FROM "supplies" + ↳ app/views/recipes/_form.html.haml:8 + Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 41.5ms | Allocations: 12227) + Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 124.1ms | Allocations: 40637) + Rendered recipes/_form.html.haml (Duration: 144.3ms | Allocations: 47688) + Rendered recipes/new.html.haml within layouts/application (Duration: 146.7ms | Allocations: 48809) + Rendered layout layouts/application.html.erb (Duration: 148.9ms | Allocations: 50069) +Completed 200 OK in 151ms (Views: 149.2ms | ActiveRecord: 0.7ms | Allocations: 50473) + + +Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:43:05 -0600 +Processing by RecipesController#create as HTML + Parameters: {"authenticity_token"=>"[FILTERED]", "recipe"=>{"name"=>"ty44ss", "description"=>"", "serves"=>"", "meal"=>"", "instructions"=>"", "ingredient_uses_attributes"=>{"1632238981983"=>{"use_of_type"=>"Ingredient", "use_of_id"=>"2", "quantity_minimum"=>"", "quantity_maximum"=>"", "unit"=>"", "sort"=>"", "preparation"=>"", "note"=>"", "_destroy"=>"0"}}}, "commit"=>"Create Recipe"} + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:26:in `create' + TRANSACTION (0.2ms) begin transaction + ↳ app/controllers/recipes_controller.rb:28:in `create' + Recipe Create (0.6ms) INSERT INTO "recipes" ("name", "description", "serves", "meal", "instructions", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "ty44ss"], ["description", ""], ["serves", ""], ["meal", ""], ["instructions", ""], ["created_at", "2021-09-21 15:43:05.414106"], ["updated_at", "2021-09-21 15:43:05.414106"]] + ↳ app/controllers/recipes_controller.rb:28:in `create' + Cookbook::Use Create (0.4ms) INSERT INTO "cookbook_uses" ("use_in_type", "use_in_id", "use_of_type", "use_of_id", "unit", "note", "preparation", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["use_in_type", "Recipe"], ["use_in_id", 7], ["use_of_type", "Ingredient"], ["use_of_id", 2], ["unit", ""], ["note", ""], ["preparation", ""], ["created_at", "2021-09-21 15:43:05.420100"], ["updated_at", "2021-09-21 15:43:05.420100"]] + ↳ app/controllers/recipes_controller.rb:28:in `create' + TRANSACTION (6.8ms) commit transaction + ↳ app/controllers/recipes_controller.rb:28:in `create' +Redirected to http://localhost:3000/recipes/7 +Completed 302 Found in 28ms (ActiveRecord: 8.2ms | Allocations: 4665) + + +Started GET "/recipes/7" for 127.0.0.1 at 2021-09-21 09:43:05 -0600 +Processing by RecipesController#show as HTML + Parameters: {"id"=>"7"} + Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/recipes_controller.rb:54:in `set_recipe' + Rendering layout layouts/application.html.erb + Rendering recipes/show.html.haml within layouts/application + Cookbook::Use Exists? (0.4ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 7], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Load (0.3ms) SELECT "cookbook_uses".* FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? [["use_in_id", 7], ["use_in_type", "Recipe"], ["use_of_type", "Ingredient"]] + ↳ app/views/recipes/show.html.haml:19 + Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Exists? (0.3ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 7], ["use_in_type", "Recipe"], ["use_of_type", "Tool"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Cookbook::Use Exists? (0.3ms) SELECT 1 AS one FROM "cookbook_uses" WHERE "cookbook_uses"."use_in_id" = ? AND "cookbook_uses"."use_in_type" = ? AND "cookbook_uses"."use_of_type" = ? LIMIT ? [["use_in_id", 7], ["use_in_type", "Recipe"], ["use_of_type", "Supply"], ["LIMIT", 1]] + ↳ app/views/recipes/show.html.haml:19 + Rendered /home/loren/Code/cookbook/app/views/cookbook/_used_in.html.haml (Duration: 16.7ms | Allocations: 4158) + Rendered recipes/show.html.haml within layouts/application (Duration: 19.5ms | Allocations: 4919) + Rendered layout layouts/application.html.erb (Duration: 23.4ms | Allocations: 6285) +Completed 200 OK in 26ms (Views: 22.7ms | ActiveRecord: 1.7ms | Allocations: 6973) + +