guts 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bafb689513d29ba35bc7c49911f4856090ee2508
4
- data.tar.gz: 566c4f18314029718760cf922d8bdb71c07bae8f
3
+ metadata.gz: 1ebd28095fc97a22a4de4b78ea0f91540ca8ad41
4
+ data.tar.gz: f1d6f6126e1b67fe3777f24b27a7da0ba3679d53
5
5
  SHA512:
6
- metadata.gz: 23a3618e929eb62a6ac115e813fe7d50c57922c2d5c78ced81cab9b940f300f698bb7850010b612d158661c518528b01f545e0c757fd0d3566ec9912d6554aae
7
- data.tar.gz: c3d91e52d68e7e013ab2789cfb7c13dcd45d027ad8fa033e8d119ec289b04b53166ecc0cfc17cda1e8c81ce08135b4293e75390f320c8a3cbea4880cb566fa4d
6
+ metadata.gz: fb94a7714a4d0b3d8c1cfddbfaa9fda072cd4e9a9cef7405f34b0c5b61bf5b3108c5fb618b26994b9746d1d8737723f50fccf735eec6217cc8c1839e72998a91
7
+ data.tar.gz: 77d6c306916992e32d71b6cb284a1527a7831276105a4dce2e055e4ecbbb6f05b882aaa30e2266dfc60faa58099d8002274187c9c7ce09e507c255d060a08a6f
@@ -1,3 +1,7 @@
1
+ # Version 1.3.4
2
+
3
+ + Fix for issue #3 where navigation items were showing wrong results
4
+
1
5
  # Version 1.3.3
2
6
 
3
7
  + Changed `categories`, `contents`, `media`, `groups`, `options`, `types`, and `users` to redirect to edit screen on update or create for better usability
@@ -9,9 +9,9 @@ module Guts
9
9
 
10
10
  # Displays a list of navigation items
11
11
  def index
12
- @navigation_items = NavigationItem.all
12
+ @navigation_items = @navigation.try(:navigation_items) || NavigationItem.all
13
13
  end
14
-
14
+
15
15
  # Shows a single navigation item
16
16
  def show
17
17
  end
@@ -53,11 +53,11 @@ module Guts
53
53
  # @note Redirects to #index on success
54
54
  def destroy
55
55
  @navigation_item.destroy
56
-
56
+
57
57
  flash[:notice] = 'Navigation item was successfully destroyed.'
58
58
  redirect_to navigation_navigation_items_path(@navigation)
59
59
  end
60
-
60
+
61
61
  # Generates a list of navigatable objects from the model provided
62
62
  # @see Guts::NavigatableConcern
63
63
  # @return [Object] JSON of navigatable objects
@@ -65,19 +65,19 @@ module Guts
65
65
  model = params[:model].constantize
66
66
  is_nav = @navigatable.map { |m| m[:name] }.include?(params[:model])
67
67
  objects = model.all.map { |obj| { id: obj.id, format: obj.navigatable_format } } if is_nav
68
-
68
+
69
69
  render json: objects
70
70
  end
71
71
 
72
72
  private
73
-
73
+
74
74
  # Sets a navigation from the database using `id` param
75
75
  # @note This is a `before_action` callback
76
76
  # @private
77
77
  def set_navigation_item
78
78
  @navigation_item = NavigationItem.find params[:id]
79
79
  end
80
-
80
+
81
81
  # Sets a navigation parent from the database using `navigation_id` param
82
82
  # @note This is a `before_action` callback
83
83
  # @private
@@ -102,13 +102,13 @@ module Guts
102
102
  :site_id
103
103
  )
104
104
  end
105
-
105
+
106
106
  # Forces module load models so we can determine who is navigatable
107
107
  # @see Guts::NavigatableConcern
108
108
  # @private
109
109
  def set_navigatable_models
110
110
  Dir["#{Guts::Engine.root}/app/models/**/*.rb"].each { |model| require model }
111
-
111
+
112
112
  @navigatable = ActiveRecord::Base
113
113
  .descendants
114
114
  .map(&:name)
@@ -1,5 +1,5 @@
1
1
  # Guts' module namespace
2
2
  module Guts
3
3
  # Current Guts version
4
- VERSION = '1.3.3'.freeze
4
+ VERSION = '1.3.4'.freeze
5
5
  end
Binary file
@@ -21276,3 +21276,524 @@ Processing by Guts::UsersController#edit as HTML
21276
21276
  Rendered guts/application/_layout_hook.html.erb (0.1ms)
21277
21277
  Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21278
21278
  Completed 200 OK in 107ms (Views: 101.7ms | ActiveRecord: 1.5ms)
21279
+
21280
+
21281
+ Started GET "/guts" for ::1 at 2016-08-21 23:57:37 -0230
21282
+ Processing by Guts::UsersController#index as HTML
21283
+ Guts::Site Load (0.5ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21284
+ Guts::User Load (0.5ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" IS NULL LIMIT 1
21285
+ Redirected to http://localhost:3000/guts/session/login
21286
+ Filter chain halted as :firewall rendered or redirected
21287
+ Completed 302 Found in 65ms (ActiveRecord: 3.9ms)
21288
+
21289
+
21290
+ Started GET "/guts/session/login" for ::1 at 2016-08-21 23:57:38 -0230
21291
+ Processing by Guts::SessionsController#new as HTML
21292
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21293
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sessions/new.html.erb within layouts/guts/application (23.3ms)
21294
+ Rendered guts/application/_layout_hook.html.erb (0.4ms)
21295
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" IS NULL LIMIT 1
21296
+ Completed 200 OK in 670ms (Views: 669.1ms | ActiveRecord: 0.3ms)
21297
+
21298
+
21299
+ Started GET "/assets/guts/vendor/foundation.self-c32902b7f65cb1bd7707442ee620bf9a0a030130c9867e98df01ef3811f569ff.css?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21300
+
21301
+
21302
+ Started GET "/assets/guts/vendor/sweetalert.self-93ae81483be2e9705db4cd911fa410bc2cf6c24f355dc5ac899de49fab854e63.css?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21303
+
21304
+
21305
+ Started GET "/assets/guts/application.self-5de3cc20e7decf38d990fae9ce1386c0fbf9674aacc8759c38da014842624eaf.css?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21306
+
21307
+
21308
+ Started GET "/assets/guts/vendor/font-awesome.self-a68eb5c14ddaafce1013286885bab40a1ff29285f097cea7b333b34a85b6a4ee.css?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21309
+
21310
+
21311
+ Started GET "/assets/guts/fonts.self-0da06d35b62d315601e7fb7fedef1f1934927be994475fdca6688624c7c18826.css?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21312
+
21313
+
21314
+ Started GET "/assets/tinymce/preinit.self-84328a53e798df12f891eb49871773fd9f925439c8630e9e22423a82ef9e6f89.js?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21315
+
21316
+
21317
+ Started GET "/assets/tinymce/tinymce.self-291ab6aad94eeb15c2c093d67a5ef0c29ee7bb8fcbd60aa74cf7ff0856de9629.js?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21318
+
21319
+
21320
+ Started GET "/assets/tinymce.self-75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070.js?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21321
+
21322
+
21323
+ Started GET "/assets/guts/vendor/jquery.self-ad66c584c2469d2bb527ba7aef5893549f1554ccc8ab3ccb43bd09ce8c3bf7a1.js?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21324
+
21325
+
21326
+ Started GET "/assets/guts/vendor/foundation.self-649f426f98e4a6db36a77a6984aac07629daff00d65297af03439ba00e7fb99b.js?body=1" for ::1 at 2016-08-21 23:57:38 -0230
21327
+
21328
+
21329
+ Started GET "/assets/guts/vendor/sweetalert.self-07a2b387624bb896641ca2f2f0fcb42793009484b2fff20af03d7ce92a894be8.js?body=1" for ::1 at 2016-08-21 23:57:39 -0230
21330
+
21331
+
21332
+ Started GET "/assets/guts/vendor/handlebars.self-f34dc7344cb4b7ef71749fc1095378a12419c079a2d058bf69e4a6de17d780eb.js?body=1" for ::1 at 2016-08-21 23:57:39 -0230
21333
+
21334
+
21335
+ Started GET "/assets/fontawesome/fontawesome-webfont-ff82aeed6b9bb6701696c84d1b223d2e682eb78c89117a438ce6cfea8c498995.woff2" for ::1 at 2016-08-21 23:57:39 -0230
21336
+
21337
+
21338
+ Started GET "/assets/ubuntu/ubuntu-regular-90543ac04e319b31c4d00aa8929581eb50dfce7e82027b699803d3d3d7d82577.woff" for ::1 at 2016-08-21 23:57:39 -0230
21339
+
21340
+
21341
+ Started GET "/assets/tinymce/jquery.tinymce.self-a1a9f9003344caa917c53ea9e2e0a3999194e236a502b74a5d053b8e09a506f3.js?body=1" for ::1 at 2016-08-21 23:57:39 -0230
21342
+
21343
+
21344
+ Started GET "/assets/tinymce-jquery.self-6a3cf5192354f71615ac51034b3e97c20eda99643fcaf5bbe6d41ad59bd12167.js?body=1" for ::1 at 2016-08-21 23:57:39 -0230
21345
+
21346
+
21347
+ Started GET "/assets/guts/media.self-ec1dcedb7c34db3d4ef744aa9f84fdef47a0e61b2e93621952dd755397d829e8.js?body=1" for ::1 at 2016-08-21 23:57:39 -0230
21348
+
21349
+
21350
+ Started GET "/assets/guts/navigation.self-20e8d140f606e082c206885ee2f01d06c0f7d27984697f6175cedee833f3080f.js?body=1" for ::1 at 2016-08-21 23:57:39 -0230
21351
+
21352
+
21353
+ Started GET "/assets/guts/application.self-279b1fa98e7f86ac05094ab28982a8675ff3dcb27055cc8f2210a795d398e338.js?body=1" for ::1 at 2016-08-21 23:57:39 -0230
21354
+
21355
+
21356
+ Started POST "/guts/session/login" for ::1 at 2016-08-21 23:57:42 -0230
21357
+ Processing by Guts::SessionsController#create as HTML
21358
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"8jLUM7QpR0fsQ/C0g57j/AcIyuqm2QdNhPs9EKBAkcZKU2+mWnChSD2hrFZZxoPBuJQDNkwA/Xc/Ixot9WhCOA==", "commit"=>"Login", "session"=>{"email"=>"tyler.n.king@outlook.com", "password"=>"[FILTERED]"}}
21359
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21360
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "tyler.n.king@outlook.com"]]
21361
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/sessions/new.html.erb within layouts/guts/application (1.1ms)
21362
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21363
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" IS NULL LIMIT 1
21364
+ Completed 200 OK in 178ms (Views: 85.0ms | ActiveRecord: 0.7ms)
21365
+
21366
+
21367
+ Started POST "/guts/session/login" for ::1 at 2016-08-21 23:57:44 -0230
21368
+ Processing by Guts::SessionsController#create as HTML
21369
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"rx6BZ2jF4EJ+zP6zbrSokijoBJY/yuFERBdDySGeVYIXfzryhpwGTa8uolG07Mivl3TNStUTG37/z2T0dLaGfA==", "commit"=>"Login", "session"=>{"email"=>"tyler.n.king@outlook.com", "password"=>"[FILTERED]"}}
21370
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21371
+ Guts::User Load (0.3ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."email" = ? LIMIT 1 [["email", "tyler.n.king@outlook.com"]]
21372
+ Redirected to http://localhost:3000/guts/users
21373
+ Completed 302 Found in 90ms (ActiveRecord: 0.4ms)
21374
+
21375
+
21376
+ Started GET "/guts/users" for ::1 at 2016-08-21 23:57:44 -0230
21377
+ Processing by Guts::UsersController#index as HTML
21378
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21379
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21380
+ Guts::Group Load (0.9ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21381
+  (0.2ms) SELECT COUNT(*) FROM "guts_users"
21382
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users"
21383
+ CACHE (0.0ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21384
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/users/index.html.erb within layouts/guts/application (8.4ms)
21385
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21386
+ Guts::Type Load (0.8ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21387
+ Completed 200 OK in 165ms (Views: 106.8ms | ActiveRecord: 3.0ms)
21388
+
21389
+
21390
+ Started GET "/guts/navigations" for ::1 at 2016-08-21 23:57:46 -0230
21391
+ Processing by Guts::NavigationsController#index as HTML
21392
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21393
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21394
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21395
+  (1.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21396
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (8.3ms)
21397
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21398
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21399
+ Completed 200 OK in 112ms (Views: 98.8ms | ActiveRecord: 1.8ms)
21400
+
21401
+
21402
+ Started GET "/guts/navigations/new" for ::1 at 2016-08-21 23:57:47 -0230
21403
+ Processing by Guts::NavigationsController#new as HTML
21404
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21405
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21406
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21407
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (10.2ms)
21408
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/new.html.erb within layouts/guts/application (12.5ms)
21409
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21410
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21411
+ Completed 200 OK in 106ms (Views: 97.6ms | ActiveRecord: 0.6ms)
21412
+
21413
+
21414
+ Started POST "/guts/navigations" for ::1 at 2016-08-21 23:57:51 -0230
21415
+ Processing by Guts::NavigationsController#create as HTML
21416
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"kl8KVNDRSSSpUDVUFpQhFTd8zmV8OuqsIG6OlQBb5L4qPrHBPoivK3iyabbMzEEoiOAHuZbjEJabtqmoVXM3QA==", "commit"=>"Save", "navigation"=>{"title"=>"Dummy", "site_id"=>""}}
21417
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21418
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21419
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21420
+  (0.1ms) begin transaction
21421
+ Guts::Navigation Exists (1.1ms) SELECT 1 AS one FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND ("guts_navigations"."id" IS NOT NULL) AND "guts_navigations"."slug" = ? LIMIT 1 [["slug", "dummy"]]
21422
+ SQL (1.1ms) INSERT INTO "guts_navigations" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Dummy"], ["slug", "dummy"], ["created_at", "2016-08-22 02:27:51.434333"], ["updated_at", "2016-08-22 02:27:51.434333"]]
21423
+ SQL (1.3ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 1], ["object_type", "Guts::Navigation"], ["params", "{}"], ["created_at", "2016-08-22 02:27:51.453052"], ["updated_at", "2016-08-22 02:27:51.453052"]]
21424
+  (1.3ms) commit transaction
21425
+ Redirected to http://localhost:3000/guts/navigations
21426
+ Completed 302 Found in 159ms (ActiveRecord: 5.6ms)
21427
+
21428
+
21429
+ Started GET "/guts/navigations" for ::1 at 2016-08-21 23:57:51 -0230
21430
+ Processing by Guts::NavigationsController#index as HTML
21431
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21432
+ Guts::User Load (0.2ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21433
+ Guts::Group Load (0.4ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21434
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21435
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21436
+  (1.9ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21437
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (12.8ms)
21438
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21439
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21440
+ Completed 200 OK in 86ms (Views: 76.7ms | ActiveRecord: 3.2ms)
21441
+
21442
+
21443
+ Started GET "/guts/navigations/dummy/items/new" for ::1 at 2016-08-21 23:57:52 -0230
21444
+ Processing by Guts::NavigationItemsController#new as HTML
21445
+ Parameters: {"navigation_id"=>"dummy"}
21446
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21447
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21448
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21449
+ Guts::Navigation Load (0.2ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21450
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/_form.html.erb (6.4ms)
21451
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/new.html.erb within layouts/guts/application (8.5ms)
21452
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21453
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21454
+ Completed 200 OK in 159ms (Views: 82.7ms | ActiveRecord: 0.8ms)
21455
+
21456
+
21457
+ Started POST "/guts/navigations/dummy/items" for ::1 at 2016-08-21 23:57:59 -0230
21458
+ Processing by Guts::NavigationItemsController#create as HTML
21459
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"HvfnJeElAtfhkTYqC03afKzsyz8aCWEawW8ZiLLCcM6mllywD3zk2DBzasjRFbpBE3AC4/DQmyB6tz615+qjMA==", "commit"=>"Save", "navigation_item"=>{"title"=>"Home", "navigatable_type"=>"", "custom"=>"#", "navigation_id"=>"1", "site_id"=>""}, "navigation_id"=>"dummy"}
21460
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21461
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21462
+ Guts::Group Load (0.2ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21463
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21464
+  (0.2ms) begin transaction
21465
+ SQL (2.0ms) INSERT INTO "guts_navigation_items" ("title", "custom", "navigation_id", "navigatable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Home"], ["custom", "#"], ["navigation_id", 1], ["navigatable_type", ""], ["created_at", "2016-08-22 02:27:59.714157"], ["updated_at", "2016-08-22 02:27:59.714157"]]
21466
+  (0.8ms) commit transaction
21467
+ Redirected to http://localhost:3000/guts/navigations/dummy/items
21468
+ Completed 302 Found in 19ms (ActiveRecord: 3.4ms)
21469
+
21470
+
21471
+ Started GET "/guts/navigations/dummy/items" for ::1 at 2016-08-21 23:57:59 -0230
21472
+ Processing by Guts::NavigationItemsController#index as HTML
21473
+ Parameters: {"navigation_id"=>"dummy"}
21474
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21475
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21476
+ Guts::Group Load (0.2ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21477
+ Guts::Navigation Load (0.3ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21478
+  (0.2ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
21479
+ Guts::NavigationItem Load (0.4ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
21480
+ Guts::Navigation Load (0.3ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 1]]
21481
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/index.html.erb within layouts/guts/application (19.6ms)
21482
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21483
+ Guts::Type Load (0.6ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21484
+ Completed 200 OK in 138ms (Views: 119.1ms | ActiveRecord: 2.1ms)
21485
+
21486
+
21487
+ Started GET "/guts/navigations" for ::1 at 2016-08-21 23:58:04 -0230
21488
+ Processing by Guts::NavigationsController#index as HTML
21489
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21490
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21491
+ Guts::Group Load (0.3ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21492
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21493
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21494
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21495
+ Guts::NavigationItem Load (0.2ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21496
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (6.0ms)
21497
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21498
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21499
+ Completed 200 OK in 66ms (Views: 60.2ms | ActiveRecord: 1.2ms)
21500
+
21501
+
21502
+ Started GET "/guts/navigations/new" for ::1 at 2016-08-21 23:58:05 -0230
21503
+ Processing by Guts::NavigationsController#new as HTML
21504
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21505
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21506
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21507
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (1.2ms)
21508
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/new.html.erb within layouts/guts/application (2.7ms)
21509
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21510
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21511
+ Completed 200 OK in 74ms (Views: 70.1ms | ActiveRecord: 0.4ms)
21512
+
21513
+
21514
+ Started POST "/guts/navigations" for ::1 at 2016-08-21 23:58:10 -0230
21515
+ Processing by Guts::NavigationsController#create as HTML
21516
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Wx6qqdvwo7gaEoOZuGSfWll1Zj5lGIeVxkw3nuM+ucLjfxE8NalFt8vw33tiPP9n5umv4o/Bfa99lBCjthZqPA==", "commit"=>"Save", "navigation"=>{"title"=>"Dummy Footer", "site_id"=>""}}
21517
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21518
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21519
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21520
+  (0.1ms) begin transaction
21521
+ Guts::Navigation Exists (0.2ms) SELECT 1 AS one FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND ("guts_navigations"."id" IS NOT NULL) AND "guts_navigations"."slug" = ? LIMIT 1 [["slug", "dummy-footer"]]
21522
+ SQL (0.2ms) INSERT INTO "guts_navigations" ("title", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Dummy Footer"], ["slug", "dummy-footer"], ["created_at", "2016-08-22 02:28:10.152259"], ["updated_at", "2016-08-22 02:28:10.152259"]]
21523
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 2], ["object_type", "Guts::Navigation"], ["params", "{}"], ["created_at", "2016-08-22 02:28:10.154441"], ["updated_at", "2016-08-22 02:28:10.154441"]]
21524
+ SQL (0.1ms) INSERT INTO "guts_trackers" ("action", "object_id", "object_type", "params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["action", "create"], ["object_id", 2], ["object_type", "Guts::Navigation"], ["params", "{}"], ["created_at", "2016-08-22 02:28:10.156184"], ["updated_at", "2016-08-22 02:28:10.156184"]]
21525
+  (0.9ms) commit transaction
21526
+ Redirected to http://localhost:3000/guts/navigations
21527
+ Completed 302 Found in 12ms (ActiveRecord: 1.8ms)
21528
+
21529
+
21530
+ Started GET "/guts/navigations" for ::1 at 2016-08-21 23:58:10 -0230
21531
+ Processing by Guts::NavigationsController#index as HTML
21532
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21533
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21534
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21535
+  (0.2ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21536
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21537
+  (0.2ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21538
+ Guts::NavigationItem Load (0.2ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21539
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21540
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (11.2ms)
21541
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21542
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21543
+ Completed 200 OK in 83ms (Views: 79.3ms | ActiveRecord: 1.2ms)
21544
+
21545
+
21546
+ Started GET "/guts/navigations/dummy-footer/edit" for ::1 at 2016-08-21 23:58:11 -0230
21547
+ Processing by Guts::NavigationsController#edit as HTML
21548
+ Parameters: {"id"=>"dummy-footer"}
21549
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21550
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21551
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21552
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy-footer"]]
21553
+  (0.5ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 2], ["fieldable_type", "Guts::Navigation"]]
21554
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 2], ["filable_type", "Guts::Navigation"]]
21555
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (8.3ms)
21556
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/edit.html.erb within layouts/guts/application (10.5ms)
21557
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21558
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21559
+ Completed 200 OK in 69ms (Views: 64.4ms | ActiveRecord: 1.4ms)
21560
+
21561
+
21562
+ Started GET "/guts/navigations" for ::1 at 2016-08-21 23:58:13 -0230
21563
+ Processing by Guts::NavigationsController#index as HTML
21564
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21565
+ Guts::User Load (0.3ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21566
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21567
+  (0.2ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21568
+ Guts::Navigation Load (0.2ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21569
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21570
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21571
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21572
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (9.8ms)
21573
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21574
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21575
+ Completed 200 OK in 97ms (Views: 89.0ms | ActiveRecord: 1.4ms)
21576
+
21577
+
21578
+ Started GET "/guts/navigations/dummy-footer/items/new" for ::1 at 2016-08-21 23:58:14 -0230
21579
+ Processing by Guts::NavigationItemsController#new as HTML
21580
+ Parameters: {"navigation_id"=>"dummy-footer"}
21581
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21582
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21583
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21584
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy-footer"]]
21585
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/_form.html.erb (2.6ms)
21586
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/new.html.erb within layouts/guts/application (4.3ms)
21587
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21588
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21589
+ Completed 200 OK in 80ms (Views: 71.9ms | ActiveRecord: 0.5ms)
21590
+
21591
+
21592
+ Started POST "/guts/navigations/dummy-footer/items" for ::1 at 2016-08-21 23:58:22 -0230
21593
+ Processing by Guts::NavigationItemsController#create as HTML
21594
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"G6hMPHejlJbCHINEmJIFnDbnXk2AY5lzzHxFh8cTz8WjyfepmfpymRP+36ZCymWhiXuXkWq6Y0l3pGK6kjscOw==", "commit"=>"Save", "navigation_item"=>{"title"=>"Home 2", "navigatable_type"=>"", "custom"=>"#", "navigation_id"=>"2", "site_id"=>""}, "navigation_id"=>"dummy-footer"}
21595
+ Guts::Site Load (0.4ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21596
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21597
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21598
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy-footer"]]
21599
+  (0.1ms) begin transaction
21600
+ SQL (0.3ms) INSERT INTO "guts_navigation_items" ("title", "custom", "navigation_id", "navigatable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["title", "Home 2"], ["custom", "#"], ["navigation_id", 2], ["navigatable_type", ""], ["created_at", "2016-08-22 02:28:22.873249"], ["updated_at", "2016-08-22 02:28:22.873249"]]
21601
+  (1.4ms) commit transaction
21602
+ Redirected to http://localhost:3000/guts/navigations/dummy-footer/items
21603
+ Completed 302 Found in 18ms (ActiveRecord: 2.3ms)
21604
+
21605
+
21606
+ Started GET "/guts/navigations/dummy-footer/items" for ::1 at 2016-08-21 23:58:22 -0230
21607
+ Processing by Guts::NavigationItemsController#index as HTML
21608
+ Parameters: {"navigation_id"=>"dummy-footer"}
21609
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21610
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21611
+ Guts::Group Load (0.2ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21612
+ Guts::Navigation Load (0.5ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy-footer"]]
21613
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
21614
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
21615
+ Guts::Navigation Load (0.4ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 1]]
21616
+ Guts::Navigation Load (0.2ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 2]]
21617
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/index.html.erb within layouts/guts/application (18.0ms)
21618
+ Rendered guts/application/_layout_hook.html.erb (0.2ms)
21619
+ Guts::Type Load (0.4ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21620
+ Completed 200 OK in 122ms (Views: 103.6ms | ActiveRecord: 2.2ms)
21621
+
21622
+
21623
+ Started GET "/guts/navigations/dummy/items" for ::1 at 2016-08-21 23:58:36 -0230
21624
+ Processing by Guts::NavigationItemsController#index as HTML
21625
+ Parameters: {"navigation_id"=>"dummy"}
21626
+ Guts::Site Load (0.2ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21627
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21628
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21629
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21630
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
21631
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL
21632
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 1]]
21633
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."id" = ? LIMIT 1 [["id", 2]]
21634
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/index.html.erb within layouts/guts/application (4.9ms)
21635
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21636
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21637
+ Completed 200 OK in 70ms (Views: 60.3ms | ActiveRecord: 1.0ms)
21638
+
21639
+
21640
+ Started GET "/guts/navigations/dummy-footer/items" for ::1 at 2016-08-21 23:59:17 -0230
21641
+ Processing by Guts::NavigationItemsController#index as HTML
21642
+ Parameters: {"navigation_id"=>"dummy-footer"}
21643
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21644
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21645
+ Guts::Group Load (0.2ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21646
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy-footer"]]
21647
+  (0.2ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21648
+ Guts::NavigationItem Load (0.4ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21649
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/index.html.erb within layouts/guts/application (15.9ms)
21650
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21651
+ Guts::Type Load (0.3ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21652
+ Completed 200 OK in 167ms (Views: 85.9ms | ActiveRecord: 3.4ms)
21653
+
21654
+
21655
+ Started GET "/assets/guts/vendor/foundation.self-c32902b7f65cb1bd7707442ee620bf9a0a030130c9867e98df01ef3811f569ff.css?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21656
+
21657
+
21658
+ Started GET "/assets/guts/vendor/sweetalert.self-93ae81483be2e9705db4cd911fa410bc2cf6c24f355dc5ac899de49fab854e63.css?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21659
+
21660
+
21661
+ Started GET "/assets/guts/fonts.self-0da06d35b62d315601e7fb7fedef1f1934927be994475fdca6688624c7c18826.css?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21662
+
21663
+
21664
+ Started GET "/assets/guts/vendor/font-awesome.self-a68eb5c14ddaafce1013286885bab40a1ff29285f097cea7b333b34a85b6a4ee.css?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21665
+
21666
+
21667
+ Started GET "/assets/guts/application.self-5de3cc20e7decf38d990fae9ce1386c0fbf9674aacc8759c38da014842624eaf.css?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21668
+
21669
+
21670
+ Started GET "/assets/tinymce/preinit.self-84328a53e798df12f891eb49871773fd9f925439c8630e9e22423a82ef9e6f89.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21671
+
21672
+
21673
+ Started GET "/assets/tinymce/tinymce.self-291ab6aad94eeb15c2c093d67a5ef0c29ee7bb8fcbd60aa74cf7ff0856de9629.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21674
+
21675
+
21676
+ Started GET "/assets/tinymce.self-75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21677
+
21678
+
21679
+ Started GET "/assets/guts/vendor/jquery.self-ad66c584c2469d2bb527ba7aef5893549f1554ccc8ab3ccb43bd09ce8c3bf7a1.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21680
+
21681
+
21682
+ Started GET "/assets/guts/vendor/foundation.self-649f426f98e4a6db36a77a6984aac07629daff00d65297af03439ba00e7fb99b.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21683
+
21684
+
21685
+ Started GET "/assets/guts/vendor/handlebars.self-f34dc7344cb4b7ef71749fc1095378a12419c079a2d058bf69e4a6de17d780eb.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21686
+
21687
+
21688
+ Started GET "/assets/guts/vendor/sweetalert.self-07a2b387624bb896641ca2f2f0fcb42793009484b2fff20af03d7ce92a894be8.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21689
+
21690
+
21691
+ Started GET "/assets/tinymce/jquery.tinymce.self-a1a9f9003344caa917c53ea9e2e0a3999194e236a502b74a5d053b8e09a506f3.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21692
+
21693
+
21694
+ Started GET "/assets/guts/media.self-ec1dcedb7c34db3d4ef744aa9f84fdef47a0e61b2e93621952dd755397d829e8.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21695
+
21696
+
21697
+ Started GET "/assets/tinymce-jquery.self-6a3cf5192354f71615ac51034b3e97c20eda99643fcaf5bbe6d41ad59bd12167.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21698
+
21699
+
21700
+ Started GET "/assets/guts/navigation.self-20e8d140f606e082c206885ee2f01d06c0f7d27984697f6175cedee833f3080f.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21701
+
21702
+
21703
+ Started GET "/assets/guts/application.self-279b1fa98e7f86ac05094ab28982a8675ff3dcb27055cc8f2210a795d398e338.js?body=1" for ::1 at 2016-08-21 23:59:17 -0230
21704
+
21705
+
21706
+ Started GET "/guts/navigations" for ::1 at 2016-08-21 23:59:32 -0230
21707
+ Processing by Guts::NavigationsController#index as HTML
21708
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21709
+ Guts::User Load (0.3ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21710
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21711
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21712
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21713
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21714
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21715
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21716
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21717
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (9.6ms)
21718
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21719
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21720
+ Completed 200 OK in 69ms (Views: 63.5ms | ActiveRecord: 1.2ms)
21721
+
21722
+
21723
+ Started GET "/guts/navigations/dummy/edit" for ::1 at 2016-08-21 23:59:33 -0230
21724
+ Processing by Guts::NavigationsController#edit as HTML
21725
+ Parameters: {"id"=>"dummy"}
21726
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21727
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21728
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21729
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21730
+  (0.2ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 1], ["fieldable_type", "Guts::Navigation"]]
21731
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 1], ["filable_type", "Guts::Navigation"]]
21732
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/_form.html.erb (7.8ms)
21733
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/edit.html.erb within layouts/guts/application (9.2ms)
21734
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21735
+ Guts::Type Load (0.4ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21736
+ Completed 200 OK in 76ms (Views: 71.8ms | ActiveRecord: 1.3ms)
21737
+
21738
+
21739
+ Started GET "/guts/navigations" for ::1 at 2016-08-21 23:59:34 -0230
21740
+ Processing by Guts::NavigationsController#index as HTML
21741
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21742
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21743
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21744
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21745
+ Guts::Navigation Load (0.2ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL
21746
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21747
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21748
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21749
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 2]]
21750
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigations/index.html.erb within layouts/guts/application (9.8ms)
21751
+ Rendered guts/application/_layout_hook.html.erb (0.0ms)
21752
+ Guts::Type Load (0.1ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21753
+ Completed 200 OK in 75ms (Views: 71.7ms | ActiveRecord: 1.2ms)
21754
+
21755
+
21756
+ Started GET "/guts/navigations/dummy/items/1/edit" for ::1 at 2016-08-21 23:59:36 -0230
21757
+ Processing by Guts::NavigationItemsController#edit as HTML
21758
+ Parameters: {"navigation_id"=>"dummy", "id"=>"1"}
21759
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21760
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21761
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21762
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."id" = ? LIMIT 1 [["id", 1]]
21763
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21764
+  (0.1ms) SELECT COUNT(*) FROM "guts_metafields" WHERE "guts_metafields"."site_id" IS NULL AND "guts_metafields"."fieldable_id" = ? AND "guts_metafields"."fieldable_type" = ? [["fieldable_id", 1], ["fieldable_type", "Guts::NavigationItem"]]
21765
+  (0.1ms) SELECT COUNT(*) FROM "guts_media" WHERE "guts_media"."site_id" IS NULL AND "guts_media"."filable_id" = ? AND "guts_media"."filable_type" = ? [["filable_id", 1], ["filable_type", "Guts::NavigationItem"]]
21766
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/_form.html.erb (8.0ms)
21767
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/edit.html.erb within layouts/guts/application (10.2ms)
21768
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21769
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21770
+ Completed 200 OK in 75ms (Views: 65.8ms | ActiveRecord: 0.8ms)
21771
+
21772
+
21773
+ Started PATCH "/guts/navigations/dummy/items/1" for ::1 at 2016-08-21 23:59:37 -0230
21774
+ Processing by Guts::NavigationItemsController#update as HTML
21775
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"KkCJBuz80R5riBiivlimw8kdbAFavDVDmxpMC1q93eWSITKTAqU3EbpqREBkAMb+doGl3bBlz3kgwms2D5UOGw==", "commit"=>"Save", "navigation_item"=>{"title"=>"Home", "navigatable_type"=>"", "custom"=>"#", "navigation_id"=>"1", "site_id"=>""}, "navigation_id"=>"dummy", "id"=>"1"}
21776
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21777
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21778
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21779
+ Guts::NavigationItem Load (0.1ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."id" = ? LIMIT 1 [["id", 1]]
21780
+ Guts::Navigation Load (0.1ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21781
+  (0.1ms) begin transaction
21782
+  (0.1ms) commit transaction
21783
+ Redirected to http://localhost:3000/guts/navigations/dummy/items
21784
+ Completed 302 Found in 15ms (ActiveRecord: 0.6ms)
21785
+
21786
+
21787
+ Started GET "/guts/navigations/dummy/items" for ::1 at 2016-08-21 23:59:38 -0230
21788
+ Processing by Guts::NavigationItemsController#index as HTML
21789
+ Parameters: {"navigation_id"=>"dummy"}
21790
+ Guts::Site Load (0.1ms) SELECT "guts_sites".* FROM "guts_sites" WHERE "guts_sites"."domain" = ? LIMIT 1 [["domain", "localhost"]]
21791
+ Guts::User Load (0.1ms) SELECT "guts_users".* FROM "guts_users" WHERE "guts_users"."id" = ? LIMIT 1 [["id", 1]]
21792
+ Guts::Group Load (0.1ms) SELECT "guts_groups".* FROM "guts_groups" INNER JOIN "guts_user_groups" ON "guts_groups"."id" = "guts_user_groups"."group_id" WHERE "guts_user_groups"."user_id" = ? [["user_id", 1]]
21793
+ Guts::Navigation Load (0.2ms) SELECT "guts_navigations".* FROM "guts_navigations" WHERE "guts_navigations"."site_id" IS NULL AND "guts_navigations"."slug" = ? ORDER BY "guts_navigations"."id" ASC LIMIT 1 [["slug", "dummy"]]
21794
+  (0.1ms) SELECT COUNT(*) FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21795
+ Guts::NavigationItem Load (0.3ms) SELECT "guts_navigation_items".* FROM "guts_navigation_items" WHERE "guts_navigation_items"."site_id" IS NULL AND "guts_navigation_items"."navigation_id" = ? [["navigation_id", 1]]
21796
+ Rendered /Users/tyler/Development/GitHub/guts/app/views/guts/navigation_items/index.html.erb within layouts/guts/application (6.3ms)
21797
+ Rendered guts/application/_layout_hook.html.erb (0.1ms)
21798
+ Guts::Type Load (0.2ms) SELECT "guts_types".* FROM "guts_types" WHERE "guts_types"."site_id" IS NULL
21799
+ Completed 200 OK in 97ms (Views: 84.1ms | ActiveRecord: 1.0ms)