cookbook 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -6653,3 +6653,1083 @@ Completed 200 OK in 30ms (Views: 26.2ms | ActiveRecord: 1.5ms | Allocations: 103
6653
6653
  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]]
6654
6654
  Recipe Load (0.4ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]
6655
6655
  Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
6656
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 08:52:49 -0600
6657
+  (2.5ms) SELECT sqlite_version(*)
6658
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6659
+ Processing by RecipesController#create as HTML
6660
+ 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"}
6661
+ Can't verify CSRF token authenticity.
6662
+ Completed 422 Unprocessable Entity in 8ms (ActiveRecord: 0.0ms | Allocations: 523)
6663
+
6664
+
6665
+
6666
+ ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
6667
+
6668
+ actionpack (6.1.4.1) lib/action_controller/metal/request_forgery_protection.rb:211:in `handle_unverified_request'
6669
+ actionpack (6.1.4.1) lib/action_controller/metal/request_forgery_protection.rb:243:in `handle_unverified_request'
6670
+ devise (4.8.0) lib/devise/controllers/helpers.rb:255:in `handle_unverified_request'
6671
+ actionpack (6.1.4.1) lib/action_controller/metal/request_forgery_protection.rb:238:in `verify_authenticity_token'
6672
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:427:in `block in make_lambda'
6673
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
6674
+ actionpack (6.1.4.1) lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
6675
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:199:in `block in halting'
6676
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:512:in `block in invoke_before'
6677
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:512:in `each'
6678
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:512:in `invoke_before'
6679
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:115:in `block in run_callbacks'
6680
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:137:in `run_callbacks'
6681
+ actionpack (6.1.4.1) lib/abstract_controller/callbacks.rb:41:in `process_action'
6682
+ actionpack (6.1.4.1) lib/action_controller/metal/rescue.rb:22:in `process_action'
6683
+ actionpack (6.1.4.1) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
6684
+ activesupport (6.1.4.1) lib/active_support/notifications.rb:203:in `block in instrument'
6685
+ activesupport (6.1.4.1) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
6686
+ activesupport (6.1.4.1) lib/active_support/notifications.rb:203:in `instrument'
6687
+ actionpack (6.1.4.1) lib/action_controller/metal/instrumentation.rb:33:in `process_action'
6688
+ actionpack (6.1.4.1) lib/action_controller/metal/params_wrapper.rb:249:in `process_action'
6689
+ activerecord (6.1.4.1) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
6690
+ actionpack (6.1.4.1) lib/abstract_controller/base.rb:165:in `process'
6691
+ actionview (6.1.4.1) lib/action_view/rendering.rb:39:in `process'
6692
+ actionpack (6.1.4.1) lib/action_controller/metal.rb:190:in `dispatch'
6693
+ actionpack (6.1.4.1) lib/action_controller/metal.rb:254:in `dispatch'
6694
+ actionpack (6.1.4.1) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
6695
+ actionpack (6.1.4.1) lib/action_dispatch/routing/route_set.rb:33:in `serve'
6696
+ actionpack (6.1.4.1) lib/action_dispatch/journey/router.rb:50:in `block in serve'
6697
+ actionpack (6.1.4.1) lib/action_dispatch/journey/router.rb:32:in `each'
6698
+ actionpack (6.1.4.1) lib/action_dispatch/journey/router.rb:32:in `serve'
6699
+ actionpack (6.1.4.1) lib/action_dispatch/routing/route_set.rb:842:in `call'
6700
+ warden (1.2.9) lib/warden/manager.rb:36:in `block in call'
6701
+ warden (1.2.9) lib/warden/manager.rb:34:in `catch'
6702
+ warden (1.2.9) lib/warden/manager.rb:34:in `call'
6703
+ rack (2.2.3) lib/rack/tempfile_reaper.rb:15:in `call'
6704
+ rack (2.2.3) lib/rack/etag.rb:27:in `call'
6705
+ rack (2.2.3) lib/rack/conditional_get.rb:40:in `call'
6706
+ rack (2.2.3) lib/rack/head.rb:12:in `call'
6707
+ actionpack (6.1.4.1) lib/action_dispatch/http/permissions_policy.rb:22:in `call'
6708
+ actionpack (6.1.4.1) lib/action_dispatch/http/content_security_policy.rb:18:in `call'
6709
+ rack (2.2.3) lib/rack/session/abstract/id.rb:266:in `context'
6710
+ rack (2.2.3) lib/rack/session/abstract/id.rb:260:in `call'
6711
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/cookies.rb:689:in `call'
6712
+ activerecord (6.1.4.1) lib/active_record/migration.rb:601:in `call'
6713
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
6714
+ activesupport (6.1.4.1) lib/active_support/callbacks.rb:98:in `run_callbacks'
6715
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
6716
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
6717
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
6718
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
6719
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
6720
+ railties (6.1.4.1) lib/rails/rack/logger.rb:37:in `call_app'
6721
+ railties (6.1.4.1) lib/rails/rack/logger.rb:26:in `block in call'
6722
+ activesupport (6.1.4.1) lib/active_support/tagged_logging.rb:99:in `block in tagged'
6723
+ activesupport (6.1.4.1) lib/active_support/tagged_logging.rb:37:in `tagged'
6724
+ activesupport (6.1.4.1) lib/active_support/tagged_logging.rb:99:in `tagged'
6725
+ railties (6.1.4.1) lib/rails/rack/logger.rb:26:in `call'
6726
+ sprockets-rails (3.2.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
6727
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
6728
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/request_id.rb:26:in `call'
6729
+ rack (2.2.3) lib/rack/method_override.rb:24:in `call'
6730
+ rack (2.2.3) lib/rack/runtime.rb:22:in `call'
6731
+ activesupport (6.1.4.1) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
6732
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/executor.rb:14:in `call'
6733
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/static.rb:24:in `call'
6734
+ rack (2.2.3) lib/rack/sendfile.rb:110:in `call'
6735
+ actionpack (6.1.4.1) lib/action_dispatch/middleware/host_authorization.rb:98:in `call'
6736
+ railties (6.1.4.1) lib/rails/engine.rb:539:in `call'
6737
+ puma (4.3.8) lib/puma/configuration.rb:228:in `call'
6738
+ puma (4.3.8) lib/puma/server.rb:718:in `handle_request'
6739
+ puma (4.3.8) lib/puma/server.rb:472:in `process_client'
6740
+ puma (4.3.8) lib/puma/server.rb:328:in `block in run'
6741
+ puma (4.3.8) lib/puma/thread_pool.rb:134:in `block in spawn_thread'
6742
+ Started GET "/recipes" for 127.0.0.1 at 2021-09-21 08:52:54 -0600
6743
+ Processing by RecipesController#index as HTML
6744
+ Rendering layout layouts/application.html.erb
6745
+ Rendering recipes/index.html.haml within layouts/application
6746
+ Recipe Load (2.1ms) SELECT "recipes".* FROM "recipes"
6747
+ ↳ app/views/recipes/index.html.haml:16
6748
+ Rendered recipes/index.html.haml within layouts/application (Duration: 37.3ms | Allocations: 10421)
6749
+ Rendered layout layouts/application.html.erb (Duration: 92.2ms | Allocations: 20443)
6750
+ Completed 200 OK in 191ms (Views: 94.9ms | ActiveRecord: 2.7ms | Allocations: 40523)
6751
+
6752
+
6753
+ Started GET "/recipes/new" for 127.0.0.1 at 2021-09-21 08:52:57 -0600
6754
+ Processing by RecipesController#new as HTML
6755
+ Rendering layout layouts/application.html.erb
6756
+ Rendering recipes/new.html.haml within layouts/application
6757
+ Ingredient Load (2.3ms) SELECT "ingredients".* FROM "ingredients"
6758
+ ↳ app/views/recipes/_form.html.haml:8
6759
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 100.6ms | Allocations: 19910)
6760
+ Tool Load (0.4ms) SELECT "tools".* FROM "tools"
6761
+ ↳ app/views/recipes/_form.html.haml:8
6762
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 47.8ms | Allocations: 15485)
6763
+ Supply Load (2.3ms) SELECT "supplies".* FROM "supplies"
6764
+ ↳ app/views/recipes/_form.html.haml:8
6765
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 52.6ms | Allocations: 15483)
6766
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 227.9ms | Allocations: 64291)
6767
+ Rendered recipes/_form.html.haml (Duration: 2974.0ms | Allocations: 1187172)
6768
+ Rendered recipes/new.html.haml within layouts/application (Duration: 2978.5ms | Allocations: 1188434)
6769
+ Rendered layout layouts/application.html.erb (Duration: 2982.0ms | Allocations: 1189696)
6770
+ Completed 200 OK in 2984ms (Views: 2973.7ms | ActiveRecord: 9.2ms | Allocations: 1190120)
6771
+
6772
+
6773
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 08:53:21 -0600
6774
+ Processing by RecipesController#create as HTML
6775
+ 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"}
6776
+ Rendering layout layouts/application.html.erb
6777
+ Rendering recipes/new.html.haml within layouts/application
6778
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients"
6779
+ ↳ app/views/recipes/_form.html.haml:8
6780
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 29.9ms | Allocations: 12253)
6781
+ CACHE Ingredient Load (0.0ms) SELECT "ingredients".* FROM "ingredients"
6782
+ ↳ app/views/recipes/_form.html.haml:8
6783
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 36.8ms | Allocations: 13801)
6784
+ Tool Load (0.2ms) SELECT "tools".* FROM "tools"
6785
+ ↳ app/views/recipes/_form.html.haml:8
6786
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 30.8ms | Allocations: 12082)
6787
+ CACHE Tool Load (0.0ms) SELECT "tools".* FROM "tools"
6788
+ ↳ app/views/recipes/_form.html.haml:8
6789
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 33.8ms | Allocations: 12085)
6790
+ Supply Load (0.2ms) SELECT "supplies".* FROM "supplies"
6791
+ ↳ app/views/recipes/_form.html.haml:8
6792
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 38.0ms | Allocations: 12084)
6793
+ CACHE Supply Load (0.0ms) SELECT "supplies".* FROM "supplies"
6794
+ ↳ app/views/recipes/_form.html.haml:8
6795
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 40.2ms | Allocations: 12083)
6796
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 217.9ms | Allocations: 78475)
6797
+ Rendered recipes/_form.html.haml (Duration: 234.0ms | Allocations: 85435)
6798
+ Rendered recipes/new.html.haml within layouts/application (Duration: 234.5ms | Allocations: 85529)
6799
+ Rendered layout layouts/application.html.erb (Duration: 237.2ms | Allocations: 86789)
6800
+ Completed 200 OK in 258ms (Views: 237.3ms | ActiveRecord: 0.9ms | Allocations: 91737)
6801
+
6802
+
6803
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 08:57:28 -0600
6804
+ Processing by RecipesController#create as HTML
6805
+ 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"}
6806
+ Completed 500 Internal Server Error in 37ms (Allocations: 17398)
6807
+
6808
+
6809
+
6810
+ 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]}):
6811
+
6812
+ app/controllers/recipes_controller.rb:59:in `recipe_params'
6813
+ app/controllers/recipes_controller.rb:26:in `create'
6814
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:00:08 -0600
6815
+ Processing by RecipesController#create as HTML
6816
+ 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"}
6817
+ Completed 500 Internal Server Error in 95ms (Allocations: 17999)
6818
+
6819
+
6820
+
6821
+ 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>):
6822
+
6823
+ app/controllers/recipes_controller.rb:26:in `abort'
6824
+ app/controllers/recipes_controller.rb:26:in `create'
6825
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:01:51 -0600
6826
+  (2.5ms) SELECT sqlite_version(*)
6827
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6828
+ Processing by RecipesController#create as HTML
6829
+ 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"}
6830
+ Unpermitted parameters: :ingredient_uses_attributes, :tool_uses_attributes, :supply_uses_attributes
6831
+ Completed 500 Internal Server Error in 93ms (ActiveRecord: 0.0ms | Allocations: 19628)
6832
+
6833
+
6834
+
6835
+ SystemExit (#<ActionController::Parameters {"name"=>"atest", "description"=>"test", "serves"=>"test", "meal"=>"test", "instructions"=>"teste"} permitted: true>):
6836
+
6837
+ app/controllers/recipes_controller.rb:26:in `abort'
6838
+ app/controllers/recipes_controller.rb:26:in `create'
6839
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:02:28 -0600
6840
+ Processing by RecipesController#create as HTML
6841
+ 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"}
6842
+ Completed 500 Internal Server Error in 89ms (Allocations: 17407)
6843
+
6844
+
6845
+
6846
+ 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]}):
6847
+
6848
+ app/controllers/recipes_controller.rb:60:in `recipe_params'
6849
+ app/controllers/recipes_controller.rb:26:in `create'
6850
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:03:29 -0600
6851
+ Processing by RecipesController#create as HTML
6852
+ 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"}
6853
+ Completed 500 Internal Server Error in 47ms (Allocations: 17999)
6854
+
6855
+
6856
+
6857
+ 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>):
6858
+
6859
+ app/controllers/recipes_controller.rb:26:in `abort'
6860
+ app/controllers/recipes_controller.rb:26:in `create'
6861
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:04:11 -0600
6862
+ Processing by RecipesController#create as HTML
6863
+ 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"}
6864
+  (0.1ms) SELECT sqlite_version(*)
6865
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
6866
+ Rendering layout layouts/application.html.erb
6867
+ Rendering recipes/new.html.haml within layouts/application
6868
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients"
6869
+ ↳ app/views/recipes/_form.html.haml:8
6870
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 71.2ms | Allocations: 19747)
6871
+ CACHE Ingredient Load (0.0ms) SELECT "ingredients".* FROM "ingredients"
6872
+ ↳ app/views/recipes/_form.html.haml:8
6873
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 46.1ms | Allocations: 13796)
6874
+ Tool Load (0.4ms) SELECT "tools".* FROM "tools"
6875
+ ↳ app/views/recipes/_form.html.haml:8
6876
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 42.9ms | Allocations: 15483)
6877
+ CACHE Tool Load (0.0ms) SELECT "tools".* FROM "tools"
6878
+ ↳ app/views/recipes/_form.html.haml:8
6879
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 34.4ms | Allocations: 12085)
6880
+ Supply Load (0.4ms) SELECT "supplies".* FROM "supplies"
6881
+ ↳ app/views/recipes/_form.html.haml:8
6882
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 49.6ms | Allocations: 15481)
6883
+ CACHE Supply Load (0.0ms) SELECT "supplies".* FROM "supplies"
6884
+ ↳ app/views/recipes/_form.html.haml:8
6885
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 34.9ms | Allocations: 12083)
6886
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 311.5ms | Allocations: 100216)
6887
+ Rendered recipes/_form.html.haml (Duration: 3431.2ms | Allocations: 1219623)
6888
+ Rendered recipes/new.html.haml within layouts/application (Duration: 3435.2ms | Allocations: 1222382)
6889
+ Rendered layout layouts/application.html.erb (Duration: 3438.4ms | Allocations: 1224021)
6890
+ Completed 200 OK in 3545ms (Views: 3436.4ms | ActiveRecord: 7.1ms | Allocations: 1262397)
6891
+
6892
+
6893
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:04:27 -0600
6894
+ Processing by RecipesController#create as HTML
6895
+ 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"}
6896
+  (0.1ms) SELECT sqlite_version(*)
6897
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
6898
+ Completed 500 Internal Server Error in 85ms (ActiveRecord: 2.8ms | Allocations: 31590)
6899
+
6900
+
6901
+
6902
+ SystemExit ():
6903
+
6904
+ app/controllers/recipes_controller.rb:28:in `abort'
6905
+ app/controllers/recipes_controller.rb:28:in `create'
6906
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:04:42 -0600
6907
+ Processing by RecipesController#create as HTML
6908
+ 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"}
6909
+  (0.2ms) SELECT sqlite_version(*)
6910
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
6911
+ Completed 500 Internal Server Error in 139ms (ActiveRecord: 3.3ms | Allocations: 35251)
6912
+
6913
+
6914
+
6915
+ 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):
6916
+
6917
+ app/controllers/recipes_controller.rb:29:in `abort'
6918
+ app/controllers/recipes_controller.rb:29:in `create'
6919
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:08:19 -0600
6920
+ Processing by RecipesController#create as HTML
6921
+ 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"}
6922
+ Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.0ms | Allocations: 5436)
6923
+
6924
+
6925
+
6926
+ 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):
6927
+
6928
+ app/controllers/recipes_controller.rb:29:in `abort'
6929
+ app/controllers/recipes_controller.rb:29:in `create'
6930
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:08:34 -0600
6931
+  (2.5ms) SELECT sqlite_version(*)
6932
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6933
+ Processing by RecipesController#create as HTML
6934
+ 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"}
6935
+ Completed 500 Internal Server Error in 2969ms (ActiveRecord: 2.2ms | Allocations: 1141419)
6936
+
6937
+
6938
+
6939
+ 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):
6940
+
6941
+ app/controllers/recipes_controller.rb:29:in `abort'
6942
+ app/controllers/recipes_controller.rb:29:in `create'
6943
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:09:08 -0600
6944
+  (1.4ms) SELECT sqlite_version(*)
6945
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6946
+ Processing by RecipesController#create as HTML
6947
+ 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"}
6948
+ Completed 500 Internal Server Error in 2443ms (ActiveRecord: 1.7ms | Allocations: 1141419)
6949
+
6950
+
6951
+
6952
+ 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):
6953
+
6954
+ app/controllers/recipes_controller.rb:29:in `abort'
6955
+ app/controllers/recipes_controller.rb:29:in `create'
6956
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:12:56 -0600
6957
+ Processing by RecipesController#create as HTML
6958
+ 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"}
6959
+ Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.0ms | Allocations: 5451)
6960
+
6961
+
6962
+
6963
+ 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):
6964
+
6965
+ app/controllers/recipes_controller.rb:29:in `abort'
6966
+ app/controllers/recipes_controller.rb:29:in `create'
6967
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:13:11 -0600
6968
+  (2.5ms) SELECT sqlite_version(*)
6969
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6970
+ Processing by RecipesController#create as HTML
6971
+ 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"}
6972
+ Completed 500 Internal Server Error in 2541ms (ActiveRecord: 2.2ms | Allocations: 1141401)
6973
+
6974
+
6975
+
6976
+ 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):
6977
+
6978
+ app/controllers/recipes_controller.rb:29:in `abort'
6979
+ app/controllers/recipes_controller.rb:29:in `create'
6980
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:15:39 -0600
6981
+  (3.8ms) SELECT sqlite_version(*)
6982
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6983
+ Processing by RecipesController#create as HTML
6984
+ 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"}
6985
+ Completed 404 Not Found in 218ms (ActiveRecord: 3.4ms | Allocations: 38643)
6986
+
6987
+
6988
+
6989
+ ActiveRecord::RecordNotFound (Couldn't find Ingredient without an ID):
6990
+
6991
+ app/controllers/recipes_controller.rb:28:in `create'
6992
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:15:59 -0600
6993
+ Processing by RecipesController#create as HTML
6994
+ 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"}
6995
+ Completed 404 Not Found in 11ms (ActiveRecord: 0.0ms | Allocations: 2399)
6996
+
6997
+
6998
+
6999
+ ActiveRecord::RecordNotFound (Couldn't find Ingredient without an ID):
7000
+
7001
+ app/controllers/recipes_controller.rb:28:in `create'
7002
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:16:45 -0600
7003
+ Processing by RecipesController#create as HTML
7004
+ 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"}
7005
+  (0.2ms) SELECT sqlite_version(*)
7006
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7007
+ Completed 500 Internal Server Error in 144ms (ActiveRecord: 4.1ms | Allocations: 31828)
7008
+
7009
+
7010
+
7011
+ SystemExit ([nil, "Ingredient"]):
7012
+
7013
+ app/controllers/recipes_controller.rb:28:in `create'
7014
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:17:12 -0600
7015
+ Processing by RecipesController#create as HTML
7016
+ 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"}
7017
+  (0.1ms) SELECT sqlite_version(*)
7018
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7019
+ Completed 500 Internal Server Error in 98ms (ActiveRecord: 2.9ms | Allocations: 31818)
7020
+
7021
+
7022
+
7023
+ 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}):
7024
+
7025
+ app/controllers/recipes_controller.rb:28:in `create'
7026
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:21:23 -0600
7027
+ Processing by RecipesController#create as HTML
7028
+ 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"}
7029
+  (0.2ms) SELECT sqlite_version(*)
7030
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7031
+ Completed 500 Internal Server Error in 2975ms (ActiveRecord: 2.9ms | Allocations: 1135326)
7032
+
7033
+
7034
+
7035
+ 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):
7036
+
7037
+ app/controllers/recipes_controller.rb:29:in `abort'
7038
+ app/controllers/recipes_controller.rb:29:in `create'
7039
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:21:43 -0600
7040
+  (1.4ms) SELECT sqlite_version(*)
7041
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7042
+ Processing by RecipesController#create as HTML
7043
+ 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"}
7044
+ Completed 500 Internal Server Error in 2620ms (ActiveRecord: 2.3ms | Allocations: 1141482)
7045
+
7046
+
7047
+
7048
+ 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):
7049
+
7050
+ app/controllers/recipes_controller.rb:29:in `abort'
7051
+ app/controllers/recipes_controller.rb:29:in `create'
7052
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:22:12 -0600
7053
+  (2.8ms) SELECT sqlite_version(*)
7054
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7055
+ Processing by RecipesController#create as HTML
7056
+ 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"}
7057
+ Completed 500 Internal Server Error in 2436ms (ActiveRecord: 1.3ms | Allocations: 1141484)
7058
+
7059
+
7060
+
7061
+ 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):
7062
+
7063
+ app/controllers/recipes_controller.rb:29:in `abort'
7064
+ app/controllers/recipes_controller.rb:29:in `create'
7065
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:25:24 -0600
7066
+  (2.9ms) SELECT sqlite_version(*)
7067
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7068
+ Processing by RecipesController#create as HTML
7069
+ 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"}
7070
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7071
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7072
+ Completed 500 Internal Server Error in 134ms (ActiveRecord: 2.5ms | Allocations: 31804)
7073
+
7074
+
7075
+
7076
+ NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055e4c9462ea0>
7077
+ Did you mean? uses_attributes=):
7078
+
7079
+ app/controllers/recipes_controller.rb:26:in `create'
7080
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:25:44 -0600
7081
+ Processing by RecipesController#create as HTML
7082
+ 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"}
7083
+ Ingredient Load (0.8ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7084
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7085
+ Completed 500 Internal Server Error in 74ms (ActiveRecord: 0.8ms | Allocations: 3410)
7086
+
7087
+
7088
+
7089
+ NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055e4c79fb300>
7090
+ Did you mean? uses_attributes=):
7091
+
7092
+ app/controllers/recipes_controller.rb:26:in `create'
7093
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:26:08 -0600
7094
+ Processing by RecipesController#create as HTML
7095
+ 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"}
7096
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7097
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7098
+ Completed 500 Internal Server Error in 45ms (ActiveRecord: 0.3ms | Allocations: 3406)
7099
+
7100
+
7101
+
7102
+ NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055e4c7a724f0>
7103
+ Did you mean? uses_attributes=):
7104
+
7105
+ app/controllers/recipes_controller.rb:26:in `create'
7106
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:26:24 -0600
7107
+  (2.2ms) SELECT sqlite_version(*)
7108
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7109
+ Processing by RecipesController#create as HTML
7110
+ 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"}
7111
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7112
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7113
+ Completed 500 Internal Server Error in 104ms (ActiveRecord: 2.5ms | Allocations: 33000)
7114
+
7115
+
7116
+
7117
+ 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)):
7118
+
7119
+ app/controllers/recipes_controller.rb:26:in `create'
7120
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:28:42 -0600
7121
+  (2.0ms) SELECT sqlite_version(*)
7122
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7123
+ Processing by RecipesController#create as HTML
7124
+ 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"}
7125
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7126
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7127
+ Completed 500 Internal Server Error in 161ms (ActiveRecord: 2.1ms | Allocations: 31806)
7128
+
7129
+
7130
+
7131
+ NoMethodError (undefined method `uses_attributes' for #<Recipe:0x000055740528f478>
7132
+ Did you mean? uses_attributes=):
7133
+
7134
+ app/controllers/recipes_controller.rb:26:in `create'
7135
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:31:37 -0600
7136
+ Processing by RecipesController#create as HTML
7137
+ 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"}
7138
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7139
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7140
+ Completed 500 Internal Server Error in 30ms (ActiveRecord: 0.3ms | Allocations: 3407)
7141
+
7142
+
7143
+
7144
+ NoMethodError (undefined method `uses_attributes' for #<Recipe:0x00005574057d6e68>
7145
+ Did you mean? uses_attributes=):
7146
+
7147
+ app/controllers/recipes_controller.rb:26:in `create'
7148
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:31:52 -0600
7149
+  (2.4ms) SELECT sqlite_version(*)
7150
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7151
+ Processing by RecipesController#create as HTML
7152
+ 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"}
7153
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7154
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7155
+ Completed 500 Internal Server Error in 103ms (ActiveRecord: 1.9ms | Allocations: 31806)
7156
+
7157
+
7158
+
7159
+ NoMethodError (undefined method `uses_attributes' for #<Recipe:0x00005639bd32a710>
7160
+ Did you mean? uses_attributes=):
7161
+
7162
+ app/controllers/recipes_controller.rb:26:in `create'
7163
+  (3.8ms) SELECT sqlite_version(*)
7164
+ Recipe Load (0.5ms) SELECT "recipes".* FROM "recipes" ORDER BY "recipes"."id" ASC LIMIT ? [["LIMIT", 1]]
7165
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" ORDER BY "recipes"."id" ASC LIMIT ? [["LIMIT", 1]]
7166
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:32:43 -0600
7167
+ Processing by RecipesController#create as HTML
7168
+ 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"}
7169
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7170
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7171
+ Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.3ms | Allocations: 3410)
7172
+
7173
+
7174
+
7175
+ NoMethodError (undefined method `uses_attributes' for #<Recipe:0x00005639bb8488e8>
7176
+ Did you mean? uses_attributes=):
7177
+
7178
+ app/controllers/recipes_controller.rb:26:in `create'
7179
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:32:58 -0600
7180
+  (2.8ms) SELECT sqlite_version(*)
7181
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7182
+ Processing by RecipesController#create as HTML
7183
+ 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"}
7184
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7185
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7186
+ Tool Load (0.3ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
7187
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7188
+ Supply Load (0.2ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
7189
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7190
+ Completed 500 Internal Server Error in 2798ms (ActiveRecord: 5.9ms | Allocations: 1150301)
7191
+
7192
+
7193
+
7194
+ SystemExit ():
7195
+
7196
+ app/controllers/recipes_controller.rb:29:in `abort'
7197
+ app/controllers/recipes_controller.rb:29:in `create'
7198
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:33:14 -0600
7199
+ Processing by RecipesController#create as HTML
7200
+ 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"}
7201
+  (0.2ms) SELECT sqlite_version(*)
7202
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7203
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7204
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7205
+ Tool Load (0.4ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
7206
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7207
+ Supply Load (0.4ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
7208
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7209
+ TRANSACTION (0.1ms) begin transaction
7210
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7211
+ 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"]]
7212
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7213
+ 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"]]
7214
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7215
+ 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"]]
7216
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7217
+ 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"]]
7218
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7219
+ TRANSACTION (12.7ms) commit transaction
7220
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7221
+ Redirected to http://localhost:3000/recipes/6
7222
+ Completed 302 Found in 836ms (ActiveRecord: 65.3ms | Allocations: 48386)
7223
+
7224
+
7225
+ Started GET "/recipes/6" for 127.0.0.1 at 2021-09-21 09:33:16 -0600
7226
+ Processing by RecipesController#show as HTML
7227
+ Parameters: {"id"=>"6"}
7228
+ Recipe Load (7.0ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7229
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7230
+ Rendering layout layouts/application.html.erb
7231
+ Rendering recipes/show.html.haml within layouts/application
7232
+ 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]]
7233
+ ↳ app/views/recipes/show.html.haml:19
7234
+ 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"]]
7235
+ ↳ app/views/recipes/show.html.haml:19
7236
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7237
+ ↳ app/views/recipes/show.html.haml:19
7238
+ 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]]
7239
+ ↳ app/views/recipes/show.html.haml:19
7240
+ 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"]]
7241
+ ↳ app/views/recipes/show.html.haml:19
7242
+ Tool Load (0.3ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
7243
+ ↳ app/views/recipes/show.html.haml:19
7244
+ 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]]
7245
+ ↳ app/views/recipes/show.html.haml:19
7246
+ 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"]]
7247
+ ↳ app/views/recipes/show.html.haml:19
7248
+ Supply Load (20.2ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]
7249
+ ↳ app/views/recipes/show.html.haml:19
7250
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_used_in.html.haml (Duration: 145.4ms | Allocations: 11092)
7251
+ Rendered recipes/show.html.haml within layouts/application (Duration: 173.1ms | Allocations: 16116)
7252
+ Rendered layout layouts/application.html.erb (Duration: 239.3ms | Allocations: 22176)
7253
+ Completed 200 OK in 278ms (Views: 243.4ms | ActiveRecord: 29.8ms | Allocations: 23991)
7254
+
7255
+
7256
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:33:21 -0600
7257
+ Processing by RecipesController#edit as HTML
7258
+ Parameters: {"id"=>"6"}
7259
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7260
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7261
+ Rendering layout layouts/application.html.erb
7262
+ Rendering recipes/edit.html.haml within layouts/application
7263
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients"
7264
+ ↳ app/views/recipes/_form.html.haml:8
7265
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 53.3ms | Allocations: 15666)
7266
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 63.1ms | Allocations: 22164)
7267
+ Rendered recipes/_form.html.haml (Duration: 117.5ms | Allocations: 41301)
7268
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 121.1ms | Allocations: 42617)
7269
+ Rendered layout layouts/application.html.erb (Duration: 121.5ms | Allocations: 42688)
7270
+ Completed 500 Internal Server Error in 125ms (ActiveRecord: 0.4ms | Allocations: 43507)
7271
+
7272
+
7273
+
7274
+ ActionView::Template::Error (undefined method `[]' for nil:NilClass):
7275
+ 5: %fieldset.used_in{class: usable.plural_class}
7276
+ 6: %legend
7277
+ 7: %h3= usable.title
7278
+ 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'
7279
+ 9: %div{id: usable.plural_class}
7280
+ 10: = form.fields_for usable.uses_sym do |g|
7281
+ 11: = render 'cookbook/uses/fields', form: g, usable: usable
7282
+
7283
+ app/views/recipes/_form.html.haml:8
7284
+ app/views/recipes/_form.html.haml:2
7285
+ app/views/recipes/edit.html.haml:3
7286
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:33:51 -0600
7287
+ Processing by RecipesController#edit as HTML
7288
+ Parameters: {"id"=>"6"}
7289
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7290
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7291
+ Rendering layout layouts/application.html.erb
7292
+ Rendering recipes/edit.html.haml within layouts/application
7293
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients"
7294
+ ↳ app/views/recipes/_form.html.haml:8
7295
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 40.2ms | Allocations: 12495)
7296
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 49.0ms | Allocations: 15880)
7297
+ Rendered recipes/_form.html.haml (Duration: 68.4ms | Allocations: 22609)
7298
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 68.7ms | Allocations: 22680)
7299
+ Rendered layout layouts/application.html.erb (Duration: 68.9ms | Allocations: 22751)
7300
+ Completed 500 Internal Server Error in 71ms (ActiveRecord: 0.4ms | Allocations: 23436)
7301
+
7302
+
7303
+
7304
+ ActionView::Template::Error (undefined method `[]' for nil:NilClass):
7305
+ 5: %fieldset.used_in{class: usable.plural_class}
7306
+ 6: %legend
7307
+ 7: %h3= usable.title
7308
+ 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'
7309
+ 9: %div{id: usable.plural_class}
7310
+ 10: = form.fields_for usable.uses_sym do |g|
7311
+ 11: = render 'cookbook/uses/fields', form: g, usable: usable
7312
+
7313
+ app/views/recipes/_form.html.haml:8
7314
+ app/views/recipes/_form.html.haml:2
7315
+ app/views/recipes/edit.html.haml:3
7316
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:36:54 -0600
7317
+  (1.9ms) SELECT sqlite_version(*)
7318
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7319
+ Processing by RecipesController#edit as HTML
7320
+ Parameters: {"id"=>"6"}
7321
+ Completed 500 Internal Server Error in 51ms (ActiveRecord: 0.0ms | Allocations: 6388)
7322
+
7323
+
7324
+
7325
+ NoMethodError (undefined method `use_of=' for #<Class:0x0000558a1145b9b0>):
7326
+
7327
+ app/models/ingredient.rb:4:in `<class:Ingredient>'
7328
+ app/models/ingredient.rb:3:in `<top (required)>'
7329
+ app/models/recipe.rb:4:in `<class:Recipe>'
7330
+ app/models/recipe.rb:3:in `<top (required)>'
7331
+ app/controllers/recipes_controller.rb:54:in `set_recipe'
7332
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:37:44 -0600
7333
+  (1.5ms) SELECT sqlite_version(*)
7334
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7335
+ Processing by RecipesController#edit as HTML
7336
+ Parameters: {"id"=>"6"}
7337
+ Recipe Load (0.4ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7338
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7339
+ Rendering layout layouts/application.html.erb
7340
+ Rendering recipes/edit.html.haml within layouts/application
7341
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients"
7342
+ ↳ app/views/recipes/_form.html.haml:8
7343
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 76.2ms | Allocations: 19910)
7344
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 113.7ms | Allocations: 38100)
7345
+ Rendered recipes/_form.html.haml (Duration: 2971.2ms | Allocations: 1160732)
7346
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 2975.9ms | Allocations: 1163764)
7347
+ Rendered layout layouts/application.html.erb (Duration: 2976.2ms | Allocations: 1163839)
7348
+ Completed 500 Internal Server Error in 3069ms (ActiveRecord: 3.7ms | Allocations: 1190786)
7349
+
7350
+
7351
+
7352
+ ActionView::Template::Error (undefined method `[]' for nil:NilClass):
7353
+ 5: %fieldset.used_in{class: usable.plural_class}
7354
+ 6: %legend
7355
+ 7: %h3= usable.title
7356
+ 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'
7357
+ 9: %div{id: usable.plural_class}
7358
+ 10: = form.fields_for usable.uses_sym do |g|
7359
+ 11: = render 'cookbook/uses/fields', form: g, usable: usable
7360
+
7361
+ app/views/recipes/_form.html.haml:8
7362
+ app/views/recipes/_form.html.haml:2
7363
+ app/views/recipes/edit.html.haml:3
7364
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:38:30 -0600
7365
+ Processing by RecipesController#edit as HTML
7366
+ Parameters: {"id"=>"6"}
7367
+ Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7368
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7369
+ Rendering layout layouts/application.html.erb
7370
+ Rendering recipes/edit.html.haml within layouts/application
7371
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 2.6ms | Allocations: 1104)
7372
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 15.6ms | Allocations: 7317)
7373
+ Rendered recipes/_form.html.haml (Duration: 49.8ms | Allocations: 15832)
7374
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 53.0ms | Allocations: 17147)
7375
+ Rendered layout layouts/application.html.erb (Duration: 53.2ms | Allocations: 17218)
7376
+ Completed 500 Internal Server Error in 59ms (ActiveRecord: 0.3ms | Allocations: 18833)
7377
+
7378
+
7379
+
7380
+ ActionView::Template::Error (undefined method `[]' for nil:NilClass):
7381
+ 5: %fieldset.used_in{class: usable.plural_class}
7382
+ 6: %legend
7383
+ 7: %h3= usable.title
7384
+ 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'
7385
+ 9: %div{id: usable.plural_class}
7386
+ 10: = form.fields_for usable.uses_sym do |g|
7387
+ 11: = render 'cookbook/uses/fields', form: g, usable: usable
7388
+
7389
+ app/views/recipes/_form.html.haml:8
7390
+ app/views/recipes/_form.html.haml:2
7391
+ app/views/recipes/edit.html.haml:3
7392
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:38:45 -0600
7393
+ Processing by RecipesController#edit as HTML
7394
+ Parameters: {"id"=>"6"}
7395
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7396
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7397
+ Rendering layout layouts/application.html.erb
7398
+ Rendering recipes/edit.html.haml within layouts/application
7399
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 6.2ms | Allocations: 3788)
7400
+ Rendered recipes/_form.html.haml (Duration: 49.3ms | Allocations: 12827)
7401
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 62.4ms | Allocations: 14197)
7402
+ Rendered layout layouts/application.html.erb (Duration: 65.8ms | Allocations: 15832)
7403
+ Completed 200 OK in 78ms (Views: 74.9ms | ActiveRecord: 0.2ms | Allocations: 17476)
7404
+
7405
+
7406
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:39:11 -0600
7407
+ Processing by RecipesController#edit as HTML
7408
+ Parameters: {"id"=>"6"}
7409
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7410
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7411
+ Rendering layout layouts/application.html.erb
7412
+ Rendering recipes/edit.html.haml within layouts/application
7413
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 7.3ms | Allocations: 4514)
7414
+ Rendered recipes/_form.html.haml (Duration: 34.7ms | Allocations: 13454)
7415
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 38.1ms | Allocations: 14817)
7416
+ Rendered layout layouts/application.html.erb (Duration: 40.9ms | Allocations: 16266)
7417
+ Completed 200 OK in 47ms (Views: 43.8ms | ActiveRecord: 0.2ms | Allocations: 17894)
7418
+
7419
+
7420
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:39:29 -0600
7421
+ Processing by RecipesController#edit as HTML
7422
+ Parameters: {"id"=>"6"}
7423
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7424
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7425
+ Rendering layout layouts/application.html.erb
7426
+ Rendering recipes/edit.html.haml within layouts/application
7427
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 5.9ms | Allocations: 4697)
7428
+ Rendered recipes/_form.html.haml (Duration: 34.5ms | Allocations: 13641)
7429
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 37.6ms | Allocations: 15004)
7430
+ Rendered layout layouts/application.html.erb (Duration: 40.4ms | Allocations: 16452)
7431
+ Completed 200 OK in 46ms (Views: 43.5ms | ActiveRecord: 0.2ms | Allocations: 18062)
7432
+
7433
+
7434
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:39:46 -0600
7435
+ Processing by RecipesController#edit as HTML
7436
+ Parameters: {"id"=>"6"}
7437
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7438
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7439
+ Rendering layout layouts/application.html.erb
7440
+ Rendering recipes/edit.html.haml within layouts/application
7441
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients"
7442
+ ↳ app/views/recipes/_form.html.haml:8
7443
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 45.8ms | Allocations: 14191)
7444
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 56.4ms | Allocations: 19799)
7445
+ Rendered recipes/_form.html.haml (Duration: 84.6ms | Allocations: 28252)
7446
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 100.3ms | Allocations: 29563)
7447
+ Rendered layout layouts/application.html.erb (Duration: 100.6ms | Allocations: 29633)
7448
+ Completed 500 Internal Server Error in 107ms (ActiveRecord: 0.5ms | Allocations: 31223)
7449
+
7450
+
7451
+
7452
+ ActionView::Template::Error (undefined method `[]' for nil:NilClass):
7453
+ 5: %fieldset.used_in{class: usable.plural_class}
7454
+ 6: %legend
7455
+ 7: %h3= usable.title
7456
+ 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'
7457
+ 9: -# %div{id: usable.plural_class}
7458
+ 10: -# = form.fields_for usable.uses_sym do |g|
7459
+ 11: -# = render 'cookbook/uses/fields', form: g, usable: usable
7460
+
7461
+ app/views/recipes/_form.html.haml:8
7462
+ app/views/recipes/_form.html.haml:2
7463
+ app/views/recipes/edit.html.haml:3
7464
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:40:55 -0600
7465
+ Processing by RecipesController#edit as HTML
7466
+ Parameters: {"id"=>"6"}
7467
+ Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7468
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7469
+ Rendering layout layouts/application.html.erb
7470
+ Rendering recipes/edit.html.haml within layouts/application
7471
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients"
7472
+ ↳ app/views/recipes/_form.html.haml:8
7473
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 35.3ms | Allocations: 14198)
7474
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 44.0ms | Allocations: 20053)
7475
+ Rendered recipes/_form.html.haml (Duration: 65.9ms | Allocations: 28551)
7476
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 69.5ms | Allocations: 29865)
7477
+ Rendered layout layouts/application.html.erb (Duration: 69.7ms | Allocations: 29935)
7478
+ Completed 500 Internal Server Error in 79ms (ActiveRecord: 0.5ms | Allocations: 31532)
7479
+
7480
+
7481
+
7482
+ ActionView::Template::Error (undefined method `[]' for nil:NilClass):
7483
+ 8: = usable.uses_sym.inspect
7484
+ 9: = usable.plural_class
7485
+ 10: #{usable.singular_title}
7486
+ 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'
7487
+ 12: -# %div{id: usable.plural_class}
7488
+ 13: -# = form.fields_for usable.uses_sym do |g|
7489
+ 14: -# = render 'cookbook/uses/fields', form: g, usable: usable
7490
+
7491
+ app/views/recipes/_form.html.haml:8
7492
+ app/views/recipes/_form.html.haml:2
7493
+ app/views/recipes/edit.html.haml:3
7494
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:41:02 -0600
7495
+ Processing by RecipesController#edit as HTML
7496
+ Parameters: {"id"=>"6"}
7497
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7498
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7499
+ Rendering layout layouts/application.html.erb
7500
+ Rendering recipes/edit.html.haml within layouts/application
7501
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 9.2ms | Allocations: 5034)
7502
+ Rendered recipes/_form.html.haml (Duration: 133.3ms | Allocations: 14011)
7503
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 140.4ms | Allocations: 15374)
7504
+ Rendered layout layouts/application.html.erb (Duration: 143.8ms | Allocations: 16829)
7505
+ Completed 200 OK in 160ms (Views: 150.0ms | ActiveRecord: 0.2ms | Allocations: 18438)
7506
+
7507
+
7508
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:41:28 -0600
7509
+ Processing by RecipesController#edit as HTML
7510
+ Parameters: {"id"=>"6"}
7511
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7512
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7513
+ Rendering layout layouts/application.html.erb
7514
+ Rendering recipes/edit.html.haml within layouts/application
7515
+ 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"]]
7516
+ ↳ app/views/recipes/_form.html.haml:8
7517
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients"
7518
+ ↳ app/views/recipes/_form.html.haml:8
7519
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 43.9ms | Allocations: 14189)
7520
+ 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"]]
7521
+ ↳ app/views/recipes/_form.html.haml:8
7522
+ Tool Load (0.4ms) SELECT "tools".* FROM "tools"
7523
+ ↳ app/views/recipes/_form.html.haml:8
7524
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 37.9ms | Allocations: 15538)
7525
+ 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"]]
7526
+ ↳ app/views/recipes/_form.html.haml:8
7527
+ Supply Load (0.3ms) SELECT "supplies".* FROM "supplies"
7528
+ ↳ app/views/recipes/_form.html.haml:8
7529
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 38.2ms | Allocations: 15471)
7530
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 146.7ms | Allocations: 55570)
7531
+ Rendered recipes/_form.html.haml (Duration: 169.3ms | Allocations: 64317)
7532
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 172.7ms | Allocations: 65681)
7533
+ Rendered layout layouts/application.html.erb (Duration: 175.0ms | Allocations: 67129)
7534
+ Completed 200 OK in 181ms (Views: 174.2ms | ActiveRecord: 3.3ms | Allocations: 68746)
7535
+
7536
+
7537
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:41:46 -0600
7538
+ Processing by RecipesController#edit as HTML
7539
+ Parameters: {"id"=>"6"}
7540
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7541
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7542
+ Rendering layout layouts/application.html.erb
7543
+ Rendering recipes/edit.html.haml within layouts/application
7544
+ Ingredient Load (0.3ms) SELECT "ingredients".* FROM "ingredients"
7545
+ ↳ app/views/recipes/_form.html.haml:8
7546
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 44.7ms | Allocations: 14160)
7547
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 55.6ms | Allocations: 20361)
7548
+ Rendered recipes/_form.html.haml (Duration: 88.5ms | Allocations: 28814)
7549
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 95.5ms | Allocations: 30125)
7550
+ Rendered layout layouts/application.html.erb (Duration: 95.8ms | Allocations: 30195)
7551
+ Completed 500 Internal Server Error in 104ms (ActiveRecord: 0.4ms | Allocations: 31785)
7552
+
7553
+
7554
+
7555
+ ActionView::Template::Error (undefined method `[]' for nil:NilClass):
7556
+ 5: %fieldset.used_in{class: usable.plural_class}
7557
+ 6: %legend
7558
+ 7: %h3= usable.title
7559
+ 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'
7560
+ 9: %div{id: usable.plural_class}
7561
+ 10: = form.fields_for usable.uses_sym do |g|
7562
+ 11: = render 'cookbook/uses/fields', form: g, usable: usable
7563
+
7564
+ app/views/recipes/_form.html.haml:8
7565
+ app/views/recipes/_form.html.haml:2
7566
+ app/views/recipes/edit.html.haml:3
7567
+ Started GET "/recipes/6/edit" for 127.0.0.1 at 2021-09-21 09:42:32 -0600
7568
+  (2.0ms) SELECT sqlite_version(*)
7569
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7570
+ Processing by RecipesController#edit as HTML
7571
+ Parameters: {"id"=>"6"}
7572
+ Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7573
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7574
+ Rendering layout layouts/application.html.erb
7575
+ Rendering recipes/edit.html.haml within layouts/application
7576
+ Ingredient Load (0.4ms) SELECT "ingredients".* FROM "ingredients"
7577
+ ↳ app/views/recipes/_form.html.haml:8
7578
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 68.9ms | Allocations: 19901)
7579
+ 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"]]
7580
+ ↳ app/views/recipes/_form.html.haml:8
7581
+ CACHE Ingredient Load (0.0ms) SELECT "ingredients".* FROM "ingredients"
7582
+ ↳ app/views/recipes/_form.html.haml:8
7583
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 39.3ms | Allocations: 13713)
7584
+ Tool Load (0.3ms) SELECT "tools".* FROM "tools"
7585
+ ↳ app/views/recipes/_form.html.haml:8
7586
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 46.5ms | Allocations: 15487)
7587
+ 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"]]
7588
+ ↳ app/views/recipes/_form.html.haml:8
7589
+ CACHE Tool Load (0.0ms) SELECT "tools".* FROM "tools"
7590
+ ↳ app/views/recipes/_form.html.haml:8
7591
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 39.1ms | Allocations: 12008)
7592
+ Supply Load (0.5ms) SELECT "supplies".* FROM "supplies"
7593
+ ↳ app/views/recipes/_form.html.haml:8
7594
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 47.4ms | Allocations: 15483)
7595
+ 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"]]
7596
+ ↳ app/views/recipes/_form.html.haml:8
7597
+ CACHE Supply Load (0.0ms) SELECT "supplies".* FROM "supplies"
7598
+ ↳ app/views/recipes/_form.html.haml:8
7599
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 36.7ms | Allocations: 12006)
7600
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 342.1ms | Allocations: 111297)
7601
+ Rendered recipes/_form.html.haml (Duration: 2906.0ms | Allocations: 1234261)
7602
+ Rendered recipes/edit.html.haml within layouts/application (Duration: 2910.9ms | Allocations: 1237349)
7603
+ Rendered layout layouts/application.html.erb (Duration: 2915.0ms | Allocations: 1238995)
7604
+ Completed 200 OK in 3006ms (Views: 2915.2ms | ActiveRecord: 7.1ms | Allocations: 1266159)
7605
+
7606
+
7607
+ Started PATCH "/recipes/6" for 127.0.0.1 at 2021-09-21 09:42:47 -0600
7608
+ Processing by RecipesController#update as HTML
7609
+ 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"}
7610
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7611
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7612
+ TRANSACTION (0.1ms) begin transaction
7613
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7614
+ Ingredient Load (0.5ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7615
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7616
+ 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]]
7617
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7618
+ Tool Load (0.3ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
7619
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7620
+ 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]]
7621
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7622
+ Supply Load (0.3ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
7623
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7624
+ 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]]
7625
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7626
+ 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]]
7627
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7628
+ TRANSACTION (6.3ms) commit transaction
7629
+ ↳ app/controllers/recipes_controller.rb:37:in `update'
7630
+ Redirected to http://localhost:3000/recipes/6
7631
+ Completed 302 Found in 44ms (ActiveRecord: 8.8ms | Allocations: 9054)
7632
+
7633
+
7634
+ Started GET "/recipes/6" for 127.0.0.1 at 2021-09-21 09:42:47 -0600
7635
+ Processing by RecipesController#show as HTML
7636
+ Parameters: {"id"=>"6"}
7637
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]
7638
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7639
+ Rendering layout layouts/application.html.erb
7640
+ Rendering recipes/show.html.haml within layouts/application
7641
+ 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]]
7642
+ ↳ app/views/recipes/show.html.haml:19
7643
+ 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"]]
7644
+ ↳ app/views/recipes/show.html.haml:19
7645
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7646
+ ↳ app/views/recipes/show.html.haml:19
7647
+ 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]]
7648
+ ↳ app/views/recipes/show.html.haml:19
7649
+ 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"]]
7650
+ ↳ app/views/recipes/show.html.haml:19
7651
+ Tool Load (0.2ms) SELECT "tools".* FROM "tools" WHERE "tools"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
7652
+ ↳ app/views/recipes/show.html.haml:19
7653
+ 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]]
7654
+ ↳ app/views/recipes/show.html.haml:19
7655
+ 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"]]
7656
+ ↳ app/views/recipes/show.html.haml:19
7657
+ Supply Load (0.1ms) SELECT "supplies".* FROM "supplies" WHERE "supplies"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]
7658
+ ↳ app/views/recipes/show.html.haml:19
7659
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_used_in.html.haml (Duration: 30.7ms | Allocations: 10829)
7660
+ Rendered recipes/show.html.haml within layouts/application (Duration: 42.3ms | Allocations: 14220)
7661
+ Rendered layout layouts/application.html.erb (Duration: 45.5ms | Allocations: 15592)
7662
+ Completed 200 OK in 49ms (Views: 44.6ms | ActiveRecord: 2.1ms | Allocations: 16410)
7663
+
7664
+
7665
+ Started GET "/recipes" for 127.0.0.1 at 2021-09-21 09:42:56 -0600
7666
+ Processing by RecipesController#index as HTML
7667
+ Rendering layout layouts/application.html.erb
7668
+ Rendering recipes/index.html.haml within layouts/application
7669
+ Recipe Load (0.3ms) SELECT "recipes".* FROM "recipes"
7670
+ ↳ app/views/recipes/index.html.haml:16
7671
+ Rendered recipes/index.html.haml within layouts/application (Duration: 6.9ms | Allocations: 4447)
7672
+ Rendered layout layouts/application.html.erb (Duration: 9.7ms | Allocations: 6037)
7673
+ Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms | Allocations: 6444)
7674
+
7675
+
7676
+ Started GET "/recipes/new" for 127.0.0.1 at 2021-09-21 09:42:57 -0600
7677
+ Processing by RecipesController#new as HTML
7678
+ Rendering layout layouts/application.html.erb
7679
+ Rendering recipes/new.html.haml within layouts/application
7680
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients"
7681
+ ↳ app/views/recipes/_form.html.haml:8
7682
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 37.4ms | Allocations: 12672)
7683
+ Tool Load (0.3ms) SELECT "tools".* FROM "tools"
7684
+ ↳ app/views/recipes/_form.html.haml:8
7685
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 37.3ms | Allocations: 12223)
7686
+ Supply Load (0.2ms) SELECT "supplies".* FROM "supplies"
7687
+ ↳ app/views/recipes/_form.html.haml:8
7688
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/uses/_fields.html.haml (Duration: 41.5ms | Allocations: 12227)
7689
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_fields.html.haml (Duration: 124.1ms | Allocations: 40637)
7690
+ Rendered recipes/_form.html.haml (Duration: 144.3ms | Allocations: 47688)
7691
+ Rendered recipes/new.html.haml within layouts/application (Duration: 146.7ms | Allocations: 48809)
7692
+ Rendered layout layouts/application.html.erb (Duration: 148.9ms | Allocations: 50069)
7693
+ Completed 200 OK in 151ms (Views: 149.2ms | ActiveRecord: 0.7ms | Allocations: 50473)
7694
+
7695
+
7696
+ Started POST "/recipes" for 127.0.0.1 at 2021-09-21 09:43:05 -0600
7697
+ Processing by RecipesController#create as HTML
7698
+ 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"}
7699
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7700
+ ↳ app/controllers/recipes_controller.rb:26:in `create'
7701
+ TRANSACTION (0.2ms) begin transaction
7702
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7703
+ 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"]]
7704
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7705
+ 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"]]
7706
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7707
+ TRANSACTION (6.8ms) commit transaction
7708
+ ↳ app/controllers/recipes_controller.rb:28:in `create'
7709
+ Redirected to http://localhost:3000/recipes/7
7710
+ Completed 302 Found in 28ms (ActiveRecord: 8.2ms | Allocations: 4665)
7711
+
7712
+
7713
+ Started GET "/recipes/7" for 127.0.0.1 at 2021-09-21 09:43:05 -0600
7714
+ Processing by RecipesController#show as HTML
7715
+ Parameters: {"id"=>"7"}
7716
+ Recipe Load (0.2ms) SELECT "recipes".* FROM "recipes" WHERE "recipes"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]
7717
+ ↳ app/controllers/recipes_controller.rb:54:in `set_recipe'
7718
+ Rendering layout layouts/application.html.erb
7719
+ Rendering recipes/show.html.haml within layouts/application
7720
+ 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]]
7721
+ ↳ app/views/recipes/show.html.haml:19
7722
+ 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"]]
7723
+ ↳ app/views/recipes/show.html.haml:19
7724
+ Ingredient Load (0.2ms) SELECT "ingredients".* FROM "ingredients" WHERE "ingredients"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]
7725
+ ↳ app/views/recipes/show.html.haml:19
7726
+ 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]]
7727
+ ↳ app/views/recipes/show.html.haml:19
7728
+ 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]]
7729
+ ↳ app/views/recipes/show.html.haml:19
7730
+ Rendered /home/loren/Code/cookbook/app/views/cookbook/_used_in.html.haml (Duration: 16.7ms | Allocations: 4158)
7731
+ Rendered recipes/show.html.haml within layouts/application (Duration: 19.5ms | Allocations: 4919)
7732
+ Rendered layout layouts/application.html.erb (Duration: 23.4ms | Allocations: 6285)
7733
+ Completed 200 OK in 26ms (Views: 22.7ms | ActiveRecord: 1.7ms | Allocations: 6973)
7734
+
7735
+