journea 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +8 -0
  3. data/README.md +131 -0
  4. data/Rakefile +26 -0
  5. data/app/controllers/journea/engine_controller.rb +19 -0
  6. data/app/controllers/journea/journeys_controller.rb +10 -0
  7. data/app/controllers/journea/steps_controller.rb +52 -0
  8. data/app/helpers/journea/form_helper.rb +25 -0
  9. data/app/models/journea/journey.rb +54 -0
  10. data/app/models/journea/journey_transition.rb +17 -0
  11. data/app/models/journea/keyvalue.rb +5 -0
  12. data/app/views/application/_back_link.html.haml +5 -0
  13. data/config/initializers/simple_form.rb +179 -0
  14. data/config/locales/simple_form.en.yml +31 -0
  15. data/config/routes.rb +5 -0
  16. data/db/migrate/20161201153630_create_journey_transitions.rb +22 -0
  17. data/db/migrate/20161201162349_create_journeys_table.rb +10 -0
  18. data/db/migrate/20161202162350_create_keyvalues_table.rb +11 -0
  19. data/lib/generators/journea/install_generator.rb +76 -0
  20. data/lib/generators/journea/templates/assets/application.js +23 -0
  21. data/lib/generators/journea/templates/assets/application.scss +49 -0
  22. data/lib/generators/journea/templates/config/initializers/journea.rb +23 -0
  23. data/lib/generators/journea/templates/config/initializers/journea2.rb +24 -0
  24. data/lib/generators/journea/templates/controllers/pages_controller.rb.example +2 -0
  25. data/lib/generators/journea/templates/views/application.html.haml +20 -0
  26. data/lib/generators/journea/templates/views/pages/start.html.haml.example +12 -0
  27. data/lib/generators/journea/templates/views/shared/error_messages.html.haml.example +7 -0
  28. data/lib/generators/journea/templates/views/steps/step.html.haml.example +8 -0
  29. data/lib/journea.rb +25 -0
  30. data/lib/journea/data.rb +20 -0
  31. data/lib/journea/engine.rb +27 -0
  32. data/lib/journea/state_machine.rb +40 -0
  33. data/lib/journea/step.rb +32 -0
  34. data/lib/journea/version.rb +3 -0
  35. data/lib/simple_form_object.rb +146 -0
  36. data/lib/tasks/journea_tasks.rake +4 -0
  37. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  38. data/spec/dummy/Rakefile +6 -0
  39. data/spec/dummy/app/assets/config/manifest.js +5 -0
  40. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  41. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  42. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  43. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  44. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  45. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  46. data/spec/dummy/app/controllers/pages_controller.rb +4 -0
  47. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  48. data/spec/dummy/app/jobs/application_job.rb +2 -0
  49. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  50. data/spec/dummy/app/models/application_record.rb +3 -0
  51. data/spec/dummy/app/steps/address_step.rb +4 -0
  52. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  53. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  54. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  55. data/spec/dummy/app/views/pages/start.html.erb +1 -0
  56. data/spec/dummy/app/views/steps/address.html.erb +5 -0
  57. data/spec/dummy/app/views/steps/name.html.erb +5 -0
  58. data/spec/dummy/app/views/steps/phone_number.html.erb +0 -0
  59. data/spec/dummy/bin/bundle +3 -0
  60. data/spec/dummy/bin/rails +4 -0
  61. data/spec/dummy/bin/rake +4 -0
  62. data/spec/dummy/bin/setup +34 -0
  63. data/spec/dummy/bin/update +29 -0
  64. data/spec/dummy/config.ru +5 -0
  65. data/spec/dummy/config/application.rb +14 -0
  66. data/spec/dummy/config/boot.rb +5 -0
  67. data/spec/dummy/config/cable.yml +9 -0
  68. data/spec/dummy/config/database.yml +25 -0
  69. data/spec/dummy/config/environment.rb +5 -0
  70. data/spec/dummy/config/environments/development.rb +54 -0
  71. data/spec/dummy/config/environments/production.rb +86 -0
  72. data/spec/dummy/config/environments/test.rb +42 -0
  73. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  74. data/spec/dummy/config/initializers/assets.rb +11 -0
  75. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  76. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  77. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  78. data/spec/dummy/config/initializers/inflections.rb +16 -0
  79. data/spec/dummy/config/initializers/journea.rb +8 -0
  80. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  81. data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
  82. data/spec/dummy/config/initializers/session_store.rb +3 -0
  83. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  84. data/spec/dummy/config/locales/en.yml +23 -0
  85. data/spec/dummy/config/puma.rb +47 -0
  86. data/spec/dummy/config/routes.rb +4 -0
  87. data/spec/dummy/config/secrets.yml +22 -0
  88. data/spec/dummy/config/spring.rb +6 -0
  89. data/spec/dummy/db/development.sqlite3 +0 -0
  90. data/spec/dummy/db/schema.rb +42 -0
  91. data/spec/dummy/db/test.sqlite3 +0 -0
  92. data/spec/dummy/log/development.log +57 -0
  93. data/spec/dummy/log/test.log +448 -0
  94. data/spec/dummy/public/404.html +67 -0
  95. data/spec/dummy/public/422.html +67 -0
  96. data/spec/dummy/public/500.html +66 -0
  97. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  98. data/spec/dummy/public/apple-touch-icon.png +0 -0
  99. data/spec/dummy/public/favicon.ico +0 -0
  100. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EA/EAR2KaBsPQau6HwaTGrxV7EGMwAWyS-4C8pGVDU1Z-Q.cache +1 -0
  101. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JZ/JZuPFgM2mLQgAHB-r7Pt_TdGW3DRWPrplT7xPjnCJSE.cache +1 -0
  102. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LT/LTt1oE1gi9m65YRwUp78DuufkCOfi3sa3Qa05_ykADk.cache +1 -0
  103. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lj/LjRKOqtrClPtb97phuIWI7HHA8-p5J5nKHVE_zEycxo.cache +1 -0
  104. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMxUWUtpFaqwG3RI9t3m38QtFAOvHpiY3LphKJiVRTc.cache +1 -0
  105. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/St/StFuOi5bd69ceiqz2D6EOCmRzHgwY0IxERsMfiCneGM.cache +1 -0
  106. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vj/VjCUmI9pp5eD8BlYATbwJ4ZOk0438rwvtDrsttyWbfQ.cache +0 -0
  107. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wl/WlLcUIADXcUxaOt8Gq59uQbO0mquikyz7jxiJjXjhaI.cache +1 -0
  108. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YH/YHo__TrFq5y8rpx49T8d8ecyvMLbHFbnhz7IBV7pM98.cache +1 -0
  109. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zu/ZuLXgeX6x_Dx8sCUbzuTtWu42HzQXWe7eooTgsonTnc.cache +0 -0
  110. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aG/aG1tp1pv4kBiSKx9ixZH5xiRXH-rGa0Hi6sdl4SHw6g.cache +3 -0
  111. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aw/awTDtuorxLsRLIGEYCefR-PTN7yptoaGRLEk13vHVLA.cache +1 -0
  112. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b_/b_Itlk9QZZd7Rvf8kcA4yLP1R5Acu7jB-m1xQiSU0qE.cache +2 -0
  113. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cW/cWHxYOqms7abJ-dzXyrn2G7nadJicU5kkC8SduS06yc.cache +0 -0
  114. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbX7RFavWZoWojlrsXhsy4FN46UOfMwZYStkLHT5HJw.cache +1 -0
  115. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eY/eYTHvo0Wl2TD2vipDcJ966HHXGrA4ZlJaiA2DnftKhM.cache +1 -0
  116. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/f4/f4CpFuYmsdh1EvlFVjsl1WmM2QA9_z9AuOebEOw4mts.cache +0 -0
  117. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gH/gHSjqTBRSW22rP9mSj8XW6huEXKpcIOehvF-2fvuShQ.cache +1 -0
  118. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m0/m0smDeM83DcmOVpX9zos6AIX40E9Tf2j26tyvKFgMwc.cache +1 -0
  119. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mW/mWrwQwWUQpAlMCLQ8dGv5VkAXd-TxvAtB5WPg9l09-A.cache +1 -0
  120. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mX/mX1nlsL_SWOB4y22W5FheRX0YEONKyOY7xUeIvRiHco.cache +2 -0
  121. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
  122. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
  123. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oA/oAtzk5ZeF7lWCwNufspgWqtv_dQN_n5GumFNB4ScfBE.cache +2 -0
  124. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rA/rACdJeX3jZNkhx4awGhdZeMdOfmARubkoVKVAZdwYog.cache +0 -0
  125. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sC/sCEBZXwTjRpEzThf7YHzHNfkAupMVOx_Ko7WNMAFHS0.cache +0 -0
  126. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +2 -0
  127. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yT/yTOf3QInGfDlRZlwZNDBLlbma19FQRHM035AKRxcRyw.cache +0 -0
  128. data/spec/features/journey_spec.rb +9 -0
  129. data/spec/lib/simple_form_object/attribute_spec.rb +74 -0
  130. data/spec/lib/simple_form_object/delegation_spec.rb +50 -0
  131. data/spec/lib/simple_form_object/model_spec.rb +90 -0
  132. data/spec/lib/steps_spec.rb +0 -0
  133. data/spec/requests/journeys_spec.rb +6 -0
  134. data/spec/spec_helper.rb +44 -0
  135. metadata +449 -0
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+ root to: 'pages#start'
3
+ mount Journea::Engine => '/journey'
4
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rails secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 2f258063abee6bc541fad7431024d0e4daba8267f97ebbea231b979dfd2ba4238735568cc62862f69596318a30b7db12ab9a80ac6e7db47fd31c664fb5409b54
15
+
16
+ test:
17
+ secret_key_base: d3f5db92de5a1c7fc2d5bca170f206a19ea70badeb746c6894561dc23a1aa8627686380e6da1eb302bee214d70cee98544222e4d985039cb1b62a6a62ffb3df0
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,6 @@
1
+ %w(
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ).each { |path| Spring.watch(path) }
File without changes
@@ -0,0 +1,42 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 20161202162350) do
14
+
15
+ create_table "journea_journey_transitions", force: :cascade do |t|
16
+ t.string "to_state", null: false
17
+ t.text "metadata", default: "{}"
18
+ t.integer "sort_key", null: false
19
+ t.integer "journey_id", null: false
20
+ t.boolean "most_recent", null: false
21
+ t.datetime "created_at", null: false
22
+ t.datetime "updated_at", null: false
23
+ t.index ["journey_id", "most_recent"], name: "index_journey_transitions_parent_most_recent", unique: true, where: "most_recent"
24
+ t.index ["journey_id", "sort_key"], name: "index_journey_transitions_parent_sort", unique: true
25
+ end
26
+
27
+ create_table "journea_journeys", force: :cascade do |t|
28
+ t.string "key"
29
+ t.string "value"
30
+ t.datetime "created_at", null: false
31
+ t.datetime "updated_at", null: false
32
+ end
33
+
34
+ create_table "journea_keyvalues", force: :cascade do |t|
35
+ t.integer "journey_id"
36
+ t.string "key"
37
+ t.string "value"
38
+ t.datetime "created_at", null: false
39
+ t.datetime "updated_at", null: false
40
+ end
41
+
42
+ end
@@ -0,0 +1,57 @@
1
+ DEPRECATION WARNING: Passing #original_exception is deprecated and has no effect. Exceptions will automatically capture the original exception. (called from load at /Users/acruikshanks/.rbenv/versions/2.3.1/bin/rake:23)
2
+  (1.1ms) CREATE TABLE "journea_journey_transitions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "to_state" varchar NOT NULL, "metadata" text DEFAULT '{}', "sort_key" integer NOT NULL, "journey_id" integer NOT NULL, "most_recent" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
+  (0.1ms) select sqlite_version(*)
4
+  (0.8ms) CREATE UNIQUE INDEX "index_journey_transitions_parent_most_recent" ON "journea_journey_transitions" ("journey_id", "most_recent") WHERE most_recent
5
+  (0.1ms)  SELECT sql
6
+ FROM sqlite_master
7
+ WHERE name='index_journey_transitions_parent_most_recent' AND type='index'
8
+ UNION ALL
9
+ SELECT sql
10
+ FROM sqlite_temp_master
11
+ WHERE name='index_journey_transitions_parent_most_recent' AND type='index'
12
+ 
13
+  (0.7ms) CREATE UNIQUE INDEX "index_journey_transitions_parent_sort" ON "journea_journey_transitions" ("journey_id", "sort_key")
14
+  (0.9ms) CREATE TABLE "journea_journeys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
15
+  (0.8ms) CREATE TABLE "journea_keyvalues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "journey_id" integer, "key" varchar, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
16
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
17
+  (0.1ms) SELECT version FROM "schema_migrations"
18
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20161202162350')
19
+  (0.8ms) INSERT INTO schema_migrations (version) VALUES ('20161201153630'), ('20161201162349');
20
+
21
+ 
22
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
23
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
24
+  (0.0ms) begin transaction
25
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-01-22 20:59:13 UTC], ["updated_at", 2017-01-22 20:59:13 UTC]]
26
+  (0.7ms) commit transaction
27
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
28
+  (0.0ms) begin transaction
29
+  (0.0ms) commit transaction
30
+  (1.0ms) CREATE TABLE "journea_journey_transitions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "to_state" varchar NOT NULL, "metadata" text DEFAULT '{}', "sort_key" integer NOT NULL, "journey_id" integer NOT NULL, "most_recent" boolean NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
31
+  (0.1ms) select sqlite_version(*)
32
+  (0.8ms) CREATE UNIQUE INDEX "index_journey_transitions_parent_most_recent" ON "journea_journey_transitions" ("journey_id", "most_recent") WHERE most_recent
33
+  (0.1ms)  SELECT sql
34
+ FROM sqlite_master
35
+ WHERE name='index_journey_transitions_parent_most_recent' AND type='index'
36
+ UNION ALL
37
+ SELECT sql
38
+ FROM sqlite_temp_master
39
+ WHERE name='index_journey_transitions_parent_most_recent' AND type='index'
40
+ 
41
+  (0.8ms) CREATE UNIQUE INDEX "index_journey_transitions_parent_sort" ON "journea_journey_transitions" ("journey_id", "sort_key")
42
+  (0.8ms) CREATE TABLE "journea_journeys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
43
+  (0.8ms) CREATE TABLE "journea_keyvalues" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "journey_id" integer, "key" varchar, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
44
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
45
+  (0.1ms) SELECT version FROM "schema_migrations"
46
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20161202162350')
47
+  (0.8ms) INSERT INTO schema_migrations (version) VALUES ('20161201153630'), ('20161201162349');
48
+
49
+ 
50
+  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
51
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
52
+  (0.1ms) begin transaction
53
+ SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-01-22 22:13:39 UTC], ["updated_at", 2017-01-22 22:13:39 UTC]]
54
+  (0.7ms) commit transaction
55
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
56
+  (0.0ms) begin transaction
57
+  (0.0ms) commit transaction
@@ -0,0 +1,448 @@
1
+  (0.3ms) begin transaction
2
+ Started POST "/journey" for 127.0.0.1 at 2017-01-22 20:59:13 +0000
3
+ Processing by Journea::JourneysController#create as HTML
4
+  (0.0ms) SAVEPOINT active_record_1
5
+ SQL (0.4ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 20:59:13 UTC], ["updated_at", 2017-01-22 20:59:13 UTC]]
6
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7
+ Journea::JourneyTransition Load (0.2ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
8
+ Redirected to http://www.example.com/journey/1/steps/name/edit
9
+ Completed 302 Found in 67ms (ActiveRecord: 2.8ms)
10
+  (0.8ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+  (0.1ms) rollback transaction
13
+  (0.1ms) begin transaction
14
+  (0.0ms) rollback transaction
15
+  (0.0ms) begin transaction
16
+  (0.0ms) rollback transaction
17
+  (0.0ms) begin transaction
18
+  (0.0ms) rollback transaction
19
+  (0.0ms) begin transaction
20
+  (0.0ms) rollback transaction
21
+  (0.0ms) begin transaction
22
+  (0.0ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+  (0.0ms) rollback transaction
25
+  (0.0ms) begin transaction
26
+  (0.0ms) rollback transaction
27
+  (0.0ms) begin transaction
28
+  (0.0ms) rollback transaction
29
+  (0.0ms) begin transaction
30
+  (0.0ms) rollback transaction
31
+  (0.0ms) begin transaction
32
+  (0.0ms) rollback transaction
33
+  (0.0ms) begin transaction
34
+  (0.0ms) rollback transaction
35
+  (0.0ms) begin transaction
36
+  (0.0ms) rollback transaction
37
+  (0.0ms) begin transaction
38
+  (0.0ms) rollback transaction
39
+  (0.0ms) begin transaction
40
+  (0.0ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+  (0.0ms) rollback transaction
43
+  (0.0ms) begin transaction
44
+  (0.0ms) rollback transaction
45
+  (0.0ms) begin transaction
46
+  (0.0ms) rollback transaction
47
+  (0.0ms) begin transaction
48
+ Started GET "/" for 127.0.0.1 at 2017-01-22 20:59:13 +0000
49
+ Processing by PagesController#start as HTML
50
+ Rendering pages/start.html.erb within layouts/application
51
+ Rendered pages/start.html.erb within layouts/application (3.7ms)
52
+ Completed 200 OK in 163ms (Views: 161.0ms | ActiveRecord: 0.0ms)
53
+ Started POST "/journey/" for 127.0.0.1 at 2017-01-22 20:59:14 +0000
54
+ Processing by Journea::JourneysController#create as HTML
55
+  (0.1ms) SAVEPOINT active_record_1
56
+ SQL (0.3ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 20:59:14 UTC], ["updated_at", 2017-01-22 20:59:14 UTC]]
57
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
59
+ Redirected to http://www.example.com/journey/1/steps/name/edit
60
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
61
+ Started GET "/journey/1/steps/name/edit" for 127.0.0.1 at 2017-01-22 20:59:14 +0000
62
+ Processing by Journea::StepsController#edit as HTML
63
+ Parameters: {"journey_id"=>"1", "id"=>"name"}
64
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
65
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
66
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
67
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
68
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
69
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
70
+ Journea::Keyvalue Load (0.1ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE 1=0 AND "journea_keyvalues"."journey_id" = 1
71
+ Rendering steps/name.html.erb within layouts/application
72
+ Rendered steps/name.html.erb within layouts/application (64.7ms)
73
+ Completed 200 OK in 85ms (Views: 72.5ms | ActiveRecord: 0.5ms)
74
+ Started PATCH "/journey/1/steps/name" for 127.0.0.1 at 2017-01-22 20:59:14 +0000
75
+ Processing by Journea::StepsController#update as HTML
76
+ Parameters: {"utf8"=>"✓", "commit"=>"Continue", "journey_id"=>"1", "id"=>"name"}
77
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
78
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
79
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
80
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
81
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
82
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
83
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
84
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
85
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
86
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
87
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
88
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
89
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
90
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
91
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
92
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
93
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
94
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
95
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
96
+  (0.1ms) SAVEPOINT active_record_1
97
+ SQL (0.1ms) UPDATE "journea_journey_transitions" SET "most_recent" = 'f' WHERE "journea_journey_transitions"."journey_id" = ? [["journey_id", 1]]
98
+ SQL (0.3ms) INSERT INTO "journea_journey_transitions" ("to_state", "metadata", "sort_key", "journey_id", "most_recent", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["to_state", "address"], ["metadata", "{\"previous_state\":\"name\"}"], ["sort_key", 10], ["journey_id", 1], ["most_recent", true], ["created_at", 2017-01-22 20:59:14 UTC], ["updated_at", 2017-01-22 20:59:14 UTC]]
99
+  (0.0ms) RELEASE SAVEPOINT active_record_1
100
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
101
+ Redirected to http://www.example.com/journey/1/steps/address/edit
102
+ Completed 302 Found in 28ms (ActiveRecord: 1.1ms)
103
+ Started GET "/journey/1/steps/address/edit" for 127.0.0.1 at 2017-01-22 20:59:14 +0000
104
+ Processing by Journea::StepsController#edit as HTML
105
+ Parameters: {"journey_id"=>"1", "id"=>"address"}
106
+ Journea::Journey Load (0.0ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
107
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
108
+ Journea::Keyvalue Load (0.1ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE "journea_keyvalues"."key" IN ('address_line_1', 'address_line_2') AND "journea_keyvalues"."journey_id" = 1
109
+ Rendering steps/address.html.erb within layouts/application
110
+ Rendered steps/address.html.erb within layouts/application (1.4ms)
111
+ Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 0.2ms)
112
+  (1.4ms) rollback transaction
113
+  (0.3ms) begin transaction
114
+ Started POST "/journey" for 127.0.0.1 at 2017-01-22 22:13:42 +0000
115
+ Processing by Journea::JourneysController#create as HTML
116
+  (0.0ms) SAVEPOINT active_record_1
117
+ SQL (0.3ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 22:13:42 UTC], ["updated_at", 2017-01-22 22:13:42 UTC]]
118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
119
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
120
+ Redirected to http://www.example.com/journey/1/steps/name/edit
121
+ Completed 302 Found in 60ms (ActiveRecord: 2.8ms)
122
+  (0.4ms) rollback transaction
123
+  (0.0ms) begin transaction
124
+  (0.1ms) rollback transaction
125
+  (0.1ms) begin transaction
126
+  (0.0ms) rollback transaction
127
+  (0.0ms) begin transaction
128
+  (0.0ms) rollback transaction
129
+  (0.0ms) begin transaction
130
+  (0.0ms) rollback transaction
131
+  (0.0ms) begin transaction
132
+  (0.0ms) rollback transaction
133
+  (0.0ms) begin transaction
134
+  (0.0ms) rollback transaction
135
+  (0.0ms) begin transaction
136
+  (0.0ms) rollback transaction
137
+  (0.0ms) begin transaction
138
+  (0.0ms) rollback transaction
139
+  (0.0ms) begin transaction
140
+  (0.0ms) rollback transaction
141
+  (0.0ms) begin transaction
142
+ Started GET "/" for 127.0.0.1 at 2017-01-22 22:13:42 +0000
143
+ Processing by PagesController#start as HTML
144
+ Rendering pages/start.html.erb within layouts/application
145
+ Rendered pages/start.html.erb within layouts/application (3.0ms)
146
+ Completed 200 OK in 142ms (Views: 140.2ms | ActiveRecord: 0.0ms)
147
+ Started POST "/journey/" for 127.0.0.1 at 2017-01-22 22:13:43 +0000
148
+ Processing by Journea::JourneysController#create as HTML
149
+  (0.1ms) SAVEPOINT active_record_1
150
+ SQL (0.3ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 22:13:43 UTC], ["updated_at", 2017-01-22 22:13:43 UTC]]
151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
152
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
153
+ Redirected to http://www.example.com/journey/1/steps/name/edit
154
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
155
+ Started GET "/journey/1/steps/name/edit" for 127.0.0.1 at 2017-01-22 22:13:43 +0000
156
+ Processing by Journea::StepsController#edit as HTML
157
+ Parameters: {"journey_id"=>"1", "id"=>"name"}
158
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
159
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
160
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
161
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
162
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
163
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
164
+ Journea::Keyvalue Load (0.1ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE 1=0 AND "journea_keyvalues"."journey_id" = 1
165
+ Rendering steps/name.html.erb within layouts/application
166
+ Rendered steps/name.html.erb within layouts/application (67.5ms)
167
+ Completed 200 OK in 87ms (Views: 75.6ms | ActiveRecord: 0.5ms)
168
+ Started PATCH "/journey/1/steps/name" for 127.0.0.1 at 2017-01-22 22:13:43 +0000
169
+ Processing by Journea::StepsController#update as HTML
170
+ Parameters: {"utf8"=>"✓", "commit"=>"Continue", "journey_id"=>"1", "id"=>"name"}
171
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
172
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
173
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
174
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
175
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
176
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
177
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
178
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
179
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
180
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
181
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
182
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
183
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
184
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
185
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
186
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
187
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
188
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
189
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
190
+  (0.1ms) SAVEPOINT active_record_1
191
+ SQL (0.1ms) UPDATE "journea_journey_transitions" SET "most_recent" = 'f' WHERE "journea_journey_transitions"."journey_id" = ? [["journey_id", 1]]
192
+ SQL (0.4ms) INSERT INTO "journea_journey_transitions" ("to_state", "metadata", "sort_key", "journey_id", "most_recent", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["to_state", "address"], ["metadata", "{\"previous_state\":\"name\"}"], ["sort_key", 10], ["journey_id", 1], ["most_recent", true], ["created_at", 2017-01-22 22:13:43 UTC], ["updated_at", 2017-01-22 22:13:43 UTC]]
193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
194
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
195
+ Redirected to http://www.example.com/journey/1/steps/address/edit
196
+ Completed 302 Found in 27ms (ActiveRecord: 1.2ms)
197
+ Started GET "/journey/1/steps/address/edit" for 127.0.0.1 at 2017-01-22 22:13:43 +0000
198
+ Processing by Journea::StepsController#edit as HTML
199
+ Parameters: {"journey_id"=>"1", "id"=>"address"}
200
+ Journea::Journey Load (0.0ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
201
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
202
+ Journea::Keyvalue Load (0.1ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE "journea_keyvalues"."key" IN ('address_line_1', 'address_line_2') AND "journea_keyvalues"."journey_id" = 1
203
+ Rendering steps/address.html.erb within layouts/application
204
+ Rendered steps/address.html.erb within layouts/application (1.6ms)
205
+ Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 0.2ms)
206
+  (1.3ms) rollback transaction
207
+  (0.1ms) begin transaction
208
+  (0.0ms) rollback transaction
209
+  (0.0ms) begin transaction
210
+  (0.1ms) rollback transaction
211
+  (0.0ms) begin transaction
212
+  (0.1ms) rollback transaction
213
+  (0.0ms) begin transaction
214
+  (0.0ms) rollback transaction
215
+  (0.1ms) begin transaction
216
+  (0.0ms) rollback transaction
217
+  (0.0ms) begin transaction
218
+  (0.1ms) rollback transaction
219
+  (0.0ms) begin transaction
220
+  (0.0ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+  (0.0ms) rollback transaction
223
+  (0.0ms) begin transaction
224
+  (0.0ms) rollback transaction
225
+  (0.3ms) begin transaction
226
+  (0.1ms) rollback transaction
227
+  (0.0ms) begin transaction
228
+  (0.0ms) rollback transaction
229
+  (0.1ms) begin transaction
230
+  (0.0ms) rollback transaction
231
+  (0.0ms) begin transaction
232
+  (0.0ms) rollback transaction
233
+  (0.0ms) begin transaction
234
+  (0.0ms) rollback transaction
235
+  (0.0ms) begin transaction
236
+  (0.0ms) rollback transaction
237
+  (0.0ms) begin transaction
238
+  (0.0ms) rollback transaction
239
+  (0.0ms) begin transaction
240
+  (0.0ms) rollback transaction
241
+  (0.0ms) begin transaction
242
+  (0.0ms) rollback transaction
243
+  (0.0ms) begin transaction
244
+  (0.0ms) rollback transaction
245
+  (0.0ms) begin transaction
246
+  (0.0ms) rollback transaction
247
+  (0.0ms) begin transaction
248
+  (0.1ms) rollback transaction
249
+  (0.0ms) begin transaction
250
+  (0.0ms) rollback transaction
251
+  (0.0ms) begin transaction
252
+  (0.0ms) rollback transaction
253
+  (0.0ms) begin transaction
254
+  (0.0ms) rollback transaction
255
+  (0.0ms) begin transaction
256
+  (0.0ms) rollback transaction
257
+  (0.0ms) begin transaction
258
+ Started POST "/journey" for 127.0.0.1 at 2017-01-22 22:14:00 +0000
259
+ Processing by Journea::JourneysController#create as HTML
260
+  (0.0ms) SAVEPOINT active_record_1
261
+ SQL (0.5ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 22:14:00 UTC], ["updated_at", 2017-01-22 22:14:00 UTC]]
262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
263
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
264
+ Redirected to http://www.example.com/journey/1/steps/name/edit
265
+ Completed 302 Found in 60ms (ActiveRecord: 2.9ms)
266
+  (1.1ms) rollback transaction
267
+  (0.1ms) begin transaction
268
+  (0.0ms) rollback transaction
269
+  (0.0ms) begin transaction
270
+  (0.0ms) rollback transaction
271
+  (0.0ms) begin transaction
272
+ Started GET "/" for 127.0.0.1 at 2017-01-22 22:14:00 +0000
273
+ Processing by PagesController#start as HTML
274
+ Rendering pages/start.html.erb within layouts/application
275
+ Rendered pages/start.html.erb within layouts/application (2.9ms)
276
+ Completed 200 OK in 134ms (Views: 132.7ms | ActiveRecord: 0.0ms)
277
+ Started POST "/journey/" for 127.0.0.1 at 2017-01-22 22:14:00 +0000
278
+ Processing by Journea::JourneysController#create as HTML
279
+  (0.1ms) SAVEPOINT active_record_1
280
+ SQL (0.2ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 22:14:00 UTC], ["updated_at", 2017-01-22 22:14:00 UTC]]
281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
283
+ Redirected to http://www.example.com/journey/1/steps/name/edit
284
+ Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
285
+ Started GET "/journey/1/steps/name/edit" for 127.0.0.1 at 2017-01-22 22:14:00 +0000
286
+ Processing by Journea::StepsController#edit as HTML
287
+ Parameters: {"journey_id"=>"1", "id"=>"name"}
288
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
289
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
290
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
291
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
292
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
293
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
294
+ Journea::Keyvalue Load (0.0ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE 1=0 AND "journea_keyvalues"."journey_id" = 1
295
+ Rendering steps/name.html.erb within layouts/application
296
+ Rendered steps/name.html.erb within layouts/application (68.4ms)
297
+ Completed 200 OK in 87ms (Views: 76.3ms | ActiveRecord: 0.4ms)
298
+ Started PATCH "/journey/1/steps/name" for 127.0.0.1 at 2017-01-22 22:14:00 +0000
299
+ Processing by Journea::StepsController#update as HTML
300
+ Parameters: {"utf8"=>"✓", "commit"=>"Continue", "journey_id"=>"1", "id"=>"name"}
301
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
302
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
303
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
304
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
305
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
306
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
307
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
308
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
309
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
310
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
311
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
312
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
313
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
314
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
315
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
316
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
317
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
318
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
319
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
320
+  (0.1ms) SAVEPOINT active_record_1
321
+ SQL (0.1ms) UPDATE "journea_journey_transitions" SET "most_recent" = 'f' WHERE "journea_journey_transitions"."journey_id" = ? [["journey_id", 1]]
322
+ SQL (0.4ms) INSERT INTO "journea_journey_transitions" ("to_state", "metadata", "sort_key", "journey_id", "most_recent", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["to_state", "address"], ["metadata", "{\"previous_state\":\"name\"}"], ["sort_key", 10], ["journey_id", 1], ["most_recent", true], ["created_at", 2017-01-22 22:14:00 UTC], ["updated_at", 2017-01-22 22:14:00 UTC]]
323
+  (0.0ms) RELEASE SAVEPOINT active_record_1
324
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
325
+ Redirected to http://www.example.com/journey/1/steps/address/edit
326
+ Completed 302 Found in 24ms (ActiveRecord: 1.1ms)
327
+ Started GET "/journey/1/steps/address/edit" for 127.0.0.1 at 2017-01-22 22:14:00 +0000
328
+ Processing by Journea::StepsController#edit as HTML
329
+ Parameters: {"journey_id"=>"1", "id"=>"address"}
330
+ Journea::Journey Load (0.0ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
331
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
332
+ Journea::Keyvalue Load (0.1ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE "journea_keyvalues"."key" IN ('address_line_1', 'address_line_2') AND "journea_keyvalues"."journey_id" = 1
333
+ Rendering steps/address.html.erb within layouts/application
334
+ Rendered steps/address.html.erb within layouts/application (1.6ms)
335
+ Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.2ms)
336
+  (1.3ms) rollback transaction
337
+  (0.3ms) begin transaction
338
+  (0.1ms) rollback transaction
339
+  (0.0ms) begin transaction
340
+  (0.0ms) rollback transaction
341
+  (0.0ms) begin transaction
342
+  (0.0ms) rollback transaction
343
+  (0.0ms) begin transaction
344
+  (0.0ms) rollback transaction
345
+  (0.0ms) begin transaction
346
+  (0.1ms) rollback transaction
347
+  (0.0ms) begin transaction
348
+  (0.1ms) rollback transaction
349
+  (0.1ms) begin transaction
350
+  (0.1ms) rollback transaction
351
+  (0.0ms) begin transaction
352
+  (0.0ms) rollback transaction
353
+  (0.0ms) begin transaction
354
+  (0.0ms) rollback transaction
355
+  (0.0ms) begin transaction
356
+  (0.0ms) rollback transaction
357
+  (0.0ms) begin transaction
358
+  (0.0ms) rollback transaction
359
+  (0.0ms) begin transaction
360
+  (0.0ms) rollback transaction
361
+  (0.0ms) begin transaction
362
+  (0.0ms) rollback transaction
363
+  (0.0ms) begin transaction
364
+  (0.0ms) rollback transaction
365
+  (0.0ms) begin transaction
366
+  (0.0ms) rollback transaction
367
+  (0.0ms) begin transaction
368
+  (0.0ms) rollback transaction
369
+  (0.0ms) begin transaction
370
+  (0.0ms) rollback transaction
371
+  (0.0ms) begin transaction
372
+  (0.0ms) rollback transaction
373
+  (0.0ms) begin transaction
374
+ Started POST "/journey" for 127.0.0.1 at 2017-01-22 22:29:26 +0000
375
+ Processing by Journea::JourneysController#create as HTML
376
+  (0.0ms) SAVEPOINT active_record_1
377
+ SQL (0.4ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 22:29:26 UTC], ["updated_at", 2017-01-22 22:29:26 UTC]]
378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
379
+ Journea::JourneyTransition Load (0.2ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
380
+ Redirected to http://www.example.com/journey/1/steps/name/edit
381
+ Completed 302 Found in 61ms (ActiveRecord: 3.4ms)
382
+  (0.4ms) rollback transaction
383
+  (0.0ms) begin transaction
384
+ Started GET "/" for 127.0.0.1 at 2017-01-22 22:29:26 +0000
385
+ Processing by PagesController#start as HTML
386
+ Rendering pages/start.html.erb within layouts/application
387
+ Rendered pages/start.html.erb within layouts/application (3.2ms)
388
+ Completed 200 OK in 137ms (Views: 135.3ms | ActiveRecord: 0.0ms)
389
+ Started POST "/journey/" for 127.0.0.1 at 2017-01-22 22:29:26 +0000
390
+ Processing by Journea::JourneysController#create as HTML
391
+  (0.1ms) SAVEPOINT active_record_1
392
+ SQL (0.2ms) INSERT INTO "journea_journeys" ("created_at", "updated_at") VALUES (?, ?) [["created_at", 2017-01-22 22:29:26 UTC], ["updated_at", 2017-01-22 22:29:26 UTC]]
393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
394
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
395
+ Redirected to http://www.example.com/journey/1/steps/name/edit
396
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
397
+ Started GET "/journey/1/steps/name/edit" for 127.0.0.1 at 2017-01-22 22:29:26 +0000
398
+ Processing by Journea::StepsController#edit as HTML
399
+ Parameters: {"journey_id"=>"1", "id"=>"name"}
400
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
401
+ Journea::JourneyTransition Load (0.2ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
402
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
403
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
404
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
405
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
406
+ Journea::Keyvalue Load (0.1ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE 1=0 AND "journea_keyvalues"."journey_id" = 1
407
+ Rendering steps/name.html.erb within layouts/application
408
+ Rendered steps/name.html.erb within layouts/application (72.3ms)
409
+ Completed 200 OK in 96ms (Views: 80.9ms | ActiveRecord: 0.6ms)
410
+ Started PATCH "/journey/1/steps/name" for 127.0.0.1 at 2017-01-22 22:29:26 +0000
411
+ Processing by Journea::StepsController#update as HTML
412
+ Parameters: {"utf8"=>"✓", "commit"=>"Continue", "journey_id"=>"1", "id"=>"name"}
413
+ Journea::Journey Load (0.1ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
414
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
415
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
416
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
417
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
418
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
419
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
420
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
421
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
422
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
423
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
424
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
425
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
426
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
427
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
428
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
429
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
430
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
431
+ CACHE (0.0ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
432
+  (0.1ms) SAVEPOINT active_record_1
433
+ SQL (0.1ms) UPDATE "journea_journey_transitions" SET "most_recent" = 'f' WHERE "journea_journey_transitions"."journey_id" = ? [["journey_id", 1]]
434
+ SQL (0.3ms) INSERT INTO "journea_journey_transitions" ("to_state", "metadata", "sort_key", "journey_id", "most_recent", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["to_state", "address"], ["metadata", "{\"previous_state\":\"name\"}"], ["sort_key", 10], ["journey_id", 1], ["most_recent", true], ["created_at", 2017-01-22 22:29:26 UTC], ["updated_at", 2017-01-22 22:29:26 UTC]]
435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
436
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
437
+ Redirected to http://www.example.com/journey/1/steps/address/edit
438
+ Completed 302 Found in 25ms (ActiveRecord: 1.1ms)
439
+ Started GET "/journey/1/steps/address/edit" for 127.0.0.1 at 2017-01-22 22:29:26 +0000
440
+ Processing by Journea::StepsController#edit as HTML
441
+ Parameters: {"journey_id"=>"1", "id"=>"address"}
442
+ Journea::Journey Load (0.0ms) SELECT "journea_journeys".* FROM "journea_journeys" WHERE "journea_journeys"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
443
+ Journea::JourneyTransition Load (0.1ms) SELECT "journea_journey_transitions".* FROM "journea_journey_transitions" WHERE "journea_journey_transitions"."journey_id" = ? ORDER BY "journea_journey_transitions"."sort_key" DESC LIMIT ? [["journey_id", 1], ["LIMIT", 1]]
444
+ Journea::Keyvalue Load (0.1ms) SELECT "journea_keyvalues".* FROM "journea_keyvalues" WHERE "journea_keyvalues"."key" IN ('address_line_1', 'address_line_2') AND "journea_keyvalues"."journey_id" = 1
445
+ Rendering steps/address.html.erb within layouts/application
446
+ Rendered steps/address.html.erb within layouts/application (2.2ms)
447
+ Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 0.2ms)
448
+  (1.4ms) rollback transaction