spec/dummy/log/development.log in intro-0.2.0 vs spec/dummy/log/development.log in intro-0.3.0
- old
+ new
@@ -57565,5 +57565,129 @@
Parameters: {"controller_path"=>"home", "action_name"=>"index", "original_url"=>"http://localhost:3000/"}
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ? [["controller_path", "home"], ["action_name", "index"], ["published", "t"]]
[1m[36mIntro::Tour Load (0.1ms)[0m [1mSELECT "intro_tours".* FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ?[0m [["controller_path", "home"], ["action_name", "index"], ["published", "t"]]
[1m[35m (0.2ms)[0m SELECT "intro_tour_histories"."tour_id" FROM "intro_tour_histories" WHERE "intro_tour_histories"."user_id" IS NULL AND "intro_tour_histories"."tour_id" = 2 AND (touch_count >= 1)
Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/" for ::1 at 2019-09-05 00:04:45 +0800
+ [1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+Processing by HomeController#index as HTML
+ Rendered home/index.html.erb within layouts/application (12.7ms)
+Completed 200 OK in 338ms (Views: 337.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/intro/tours?controller_path=home&action_name=index&original_url=http%3A%2F%2Flocalhost%3A3000%2F" for ::1 at 2019-09-05 00:04:47 +0800
+Processing by Intro::ToursController#index as */*
+ Parameters: {"controller_path"=>"home", "action_name"=>"index", "original_url"=>"http://localhost:3000/"}
+DEPRECATION WARNING: Currently, Active Record suppresses errors raised within `after_rollback`/`after_commit` callbacks and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors will propagate normally just like in other Active Record callbacks.
+
+You can opt into the new behavior and remove this warning by setting:
+
+ config.active_record.raise_in_transactional_callbacks = true
+
+ (called from <class:Tour> at /home/jinhu/Repos/intro/app/models/intro/tour.rb:18)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ? [["controller_path", "home"], ["action_name", "index"], ["published", "t"]]
+ [1m[36mIntro::Tour Load (0.2ms)[0m [1mSELECT "intro_tours".* FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ?[0m [["controller_path", "home"], ["action_name", "index"], ["published", "t"]]
+ [1m[35m (0.1ms)[0m SELECT "intro_tour_histories"."tour_id" FROM "intro_tour_histories" WHERE "intro_tour_histories"."user_id" IS NULL AND "intro_tour_histories"."tour_id" = 2 AND (touch_count >= 1)
+Completed 200 OK in 72ms (Views: 0.6ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/intro/admin/tours" for ::1 at 2019-09-05 00:04:49 +0800
+Processing by Intro::Admin::ToursController#index as HTML
+Redirected to http://localhost:3000/intro/admin/sessions/new
+Filter chain halted as :authenticate rendered or redirected
+Completed 302 Found in 5ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/intro/admin/sessions/new" for ::1 at 2019-09-05 00:04:49 +0800
+Processing by Intro::Admin::SessionsController#new as HTML
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/sessions/new.html.erb within layouts/intro/admin/application (4.9ms)
+Completed 200 OK in 76ms (Views: 73.2ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/intro/admin/sessions" for ::1 at 2019-09-05 00:04:51 +0800
+Processing by Intro::Admin::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"gK6jG/BumI6SLbI6uaHij4q1w2pwcQ9swjwQEeFydjW2HmWN8sdZ01mD8pG/lnz579ybX8g5X+pDVd+8JFFjLA==", "username"=>"WRDkzl4", "password"=>"[FILTERED]", "button"=>""}
+Redirected to http://localhost:3000/intro/admin/tours
+Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/intro/admin/tours" for ::1 at 2019-09-05 00:04:51 +0800
+Processing by Intro::Admin::ToursController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35mIntro::Tour Load (0.6ms)[0m SELECT "intro_tours".* FROM "intro_tours" ORDER BY "intro_tours"."created_at" DESC LIMIT 15 OFFSET 0
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_container.html.erb (55.4ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/index.html.erb within layouts/intro/admin/application (67.7ms)
+Completed 200 OK in 110ms (Views: 104.7ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/intro/tours?controller_path=intro%2Fadmin%2Ftours&action_name=index&original_url=http%3A%2F%2Flocalhost%3A3000%2Fintro%2Fadmin%2Ftours" for ::1 at 2019-09-05 00:04:51 +0800
+Processing by Intro::ToursController#index as */*
+ Parameters: {"controller_path"=>"intro/admin/tours", "action_name"=>"index", "original_url"=>"http://localhost:3000/intro/admin/tours"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ?[0m [["controller_path", "intro/admin/tours"], ["action_name", "index"], ["published", "t"]]
+ [1m[35mIntro::Tour Load (0.1ms)[0m SELECT "intro_tours".* FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ? [["controller_path", "intro/admin/tours"], ["action_name", "index"], ["published", "t"]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT "intro_tour_histories"."tour_id" FROM "intro_tour_histories" WHERE "intro_tour_histories"."user_id" = 1 AND 1=0 AND (touch_count >= 1)
+Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/intro/admin/tours/2/edit" for ::1 at 2019-09-05 00:05:10 +0800
+Processing by Intro::Admin::ToursController#edit as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mIntro::Tour Load (0.6ms)[0m [1mSELECT "intro_tours".* FROM "intro_tours" WHERE "intro_tours"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.9ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.4ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_step.html.erb (6.8ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.3ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.3ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_step.html.erb (5.1ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_steps.html.erb (15.4ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.3ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_form.html.erb (34.3ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_container.html.erb (73.1ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/edit.html.erb within layouts/intro/admin/application (81.4ms)
+Completed 200 OK in 111ms (Views: 101.3ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/intro/tours?controller_path=intro%2Fadmin%2Ftours&action_name=edit&original_url=http%3A%2F%2Flocalhost%3A3000%2Fintro%2Fadmin%2Ftours%2F2%2Fedit" for ::1 at 2019-09-05 00:05:10 +0800
+Processing by Intro::ToursController#index as */*
+ Parameters: {"controller_path"=>"intro/admin/tours", "action_name"=>"edit", "original_url"=>"http://localhost:3000/intro/admin/tours/2/edit"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ?[0m [["controller_path", "intro/admin/tours"], ["action_name", "edit"], ["published", "t"]]
+ [1m[35mIntro::Tour Load (0.1ms)[0m SELECT "intro_tours".* FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ? [["controller_path", "intro/admin/tours"], ["action_name", "edit"], ["published", "t"]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT "intro_tour_histories"."tour_id" FROM "intro_tour_histories" WHERE "intro_tour_histories"."user_id" = 1 AND 1=0 AND (touch_count >= 1)
+Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 0.6ms)
+
+
+Started PATCH "/intro/admin/tours/2" for ::1 at 2019-09-05 00:05:14 +0800
+Processing by Intro::Admin::ToursController#update as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Z1wrsyrwrF7MBmAb8m4mpDuGNx3FfIK2IkUs5PLQ2RlR7O0lKFltAweoILD0WbjSXu9vKH000jCjLONJN/PMAA==", "tour"=>{"route"=>{"simple"=>"http://localhost:3000", "query"=>""}, "ident"=>"home#index-qar2y9", "controller_path"=>"home", "action_name"=>"index", "options"=>{"steps"=>[{"title_en"=>"brba", "title_zh-CN"=>"小明铜须爸爸", "content_en"=>"brabr fF bfb", "content_zh-CN"=>"小明铜须", "image_url"=>"", "image_width"=>"", "image_height"=>"", "image_placement"=>"top", "element"=>"", "placement"=>"top", "z_index"=>"99"}], "not_sign_visible"=>"1", "btn_visible"=>"1", "btn_complete_text_en"=>"", "btn_complete_text_zh-CN"=>"小明铜须", "btn_complete_link"=>""}, "expired_at"=>""}, "_"=>"en", "button"=>"", "id"=>"2"}
+ [1m[36mIntro::Tour Load (0.5ms)[0m [1mSELECT "intro_tours".* FROM "intro_tours" WHERE "intro_tours"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mIntro::Tour Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "intro_tours" WHERE ("intro_tours"."ident" = 'home#index-qar2y9' AND "intro_tours"."id" != 2) LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "intro_tours" SET "route" = ?, "updated_at" = ? WHERE "intro_tours"."id" = ? [["route", "--- !ruby/hash:ActionController::Parameters\nsimple: http://localhost:3000\nquery: ''\nstrict: false\n"], ["updated_at", "2019-09-04 16:05:14.658084"], ["id", 2]]
+ [1m[36m (5.4ms)[0m [1mcommit transaction[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.3ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.4ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_step.html.erb (3.5ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.4ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.4ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_step.html.erb (4.2ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_steps.html.erb (9.6ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_local_field.html.erb (0.3ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_form.html.erb (13.6ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/_container.html.erb (25.0ms)
+ Rendered /home/jinhu/Repos/intro/app/views/intro/admin/tours/edit.html.erb within layouts/intro/admin/application (26.9ms)
+Completed 200 OK in 154ms (Views: 90.5ms | ActiveRecord: 7.0ms)
+
+
+Started GET "/intro/tours?controller_path=intro%2Fadmin%2Ftours&action_name=update&original_url=http%3A%2F%2Flocalhost%3A3000%2Fintro%2Fadmin%2Ftours%2F2" for ::1 at 2019-09-05 00:05:14 +0800
+Processing by Intro::ToursController#index as */*
+ Parameters: {"controller_path"=>"intro/admin/tours", "action_name"=>"update", "original_url"=>"http://localhost:3000/intro/admin/tours/2"}
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ?[0m [["controller_path", "intro/admin/tours"], ["action_name", "update"], ["published", "t"]]
+ [1m[35mIntro::Tour Load (0.1ms)[0m SELECT "intro_tours".* FROM "intro_tours" WHERE "intro_tours"."controller_path" = ? AND "intro_tours"."action_name" = ? AND "intro_tours"."published" = ? [["controller_path", "intro/admin/tours"], ["action_name", "update"], ["published", "t"]]
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT "intro_tour_histories"."tour_id" FROM "intro_tour_histories" WHERE "intro_tour_histories"."user_id" = 1 AND 1=0 AND (touch_count >= 1)
+Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 0.7ms)