sunrise-cms 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,5 +10,14 @@ module Sunrise
10
10
  else edit_path(:model_name => "structures", :id => record.id)
11
11
  end
12
12
  end
13
+
14
+ def show_model_path(abstract_model, record)
15
+ model_name = abstract_model.scoped_path
16
+
17
+ case model_name
18
+ when :some_collection then index_path(:model_name => :stores, :parent_type => :some_collection, :parent_id => record.id)
19
+ else show_path(:id => record.id)
20
+ end
21
+ end
13
22
  end
14
23
  end
@@ -1,6 +1,6 @@
1
1
  <%= content_tag(:tr, :id => dom_id(record)) do -%>
2
2
  <td class="check-block"><%= check_box_tag dom_id(record, :editable), record.id, false, :name => :editable %></td>
3
- <td><%= link_to record.send(abstract_model.config.object_label_method), show_path(:id => record.id), :class=>"title" %></td>
3
+ <td><%= link_to record.send(abstract_model.config.object_label_method), show_model_path(abstract_model, record), :class=>"title" %></td>
4
4
 
5
5
  <% abstract_model.list.fields.each do |field| -%>
6
6
  <td><%= manage_render_field(field, record)%></td>
@@ -8,7 +8,7 @@
8
8
  <%= manage_date_tag(record.created_at)%>
9
9
  <!--<a href="#" class="grey-but">Активировать</a>-->
10
10
  </div>
11
- <%= link_to record.send(abstract_model.config.object_label_method), show_path(:id => record.id), :class=>"item-title" %>
11
+ <%= link_to record.send(abstract_model.config.object_label_method), show_model_path(abstract_model, record), :class=>"item-title" %>
12
12
 
13
13
  <div class="bot-info-bl">
14
14
  <% abstract_model.list.fields.each do |field| -%>
@@ -1,6 +1,6 @@
1
1
  <%= content_tag :li, :id => dom_id(record) do %>
2
2
  <div>
3
- <%= link_to record.send(abstract_model.config.object_label_method), show_path(:id => record.id) %>
3
+ <%= link_to record.send(abstract_model.config.object_label_method), show_model_path(abstract_model, record) %>
4
4
  </div>
5
5
 
6
6
  <% unless record.descendants_count.zero? %>
@@ -1,3 +1,3 @@
1
1
  module Sunrise
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.5.1".freeze
3
3
  end
@@ -46,5 +46,19 @@ describe Sunrise::ManagerController do
46
46
  delete :destroy, :model_name => "structures", :id => @root.id
47
47
  end
48
48
  end
49
+
50
+ context "posts" do
51
+ before(:all) do
52
+ @post = FactoryGirl.create(:post)
53
+ end
54
+
55
+ it "should respond successfully" do
56
+ get :index, :model_name => "posts"
57
+
58
+ assigns(:records).should include(@post)
59
+
60
+ response.should render_template('index')
61
+ end
62
+ end
49
63
  end
50
64
  end
@@ -77281,3 +77281,1870 @@ Completed 401 Unauthorized in 0ms
77281
77281
   (341.1ms) TRUNCATE TABLE `structures`;
77282
77282
   (481.1ms) TRUNCATE TABLE `users`;
77283
77283
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77284
+ Connecting to database specified by database.yml
77285
+  (83.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
77286
+ Migrating to InstallActsAsAudited (20111227111941)
77287
+ Migrating to CreatePageParts (20111227143901)
77288
+ Migrating to CreatePosts (20111228152051)
77289
+ Migrating to CreateMetaTags (20120105114018)
77290
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
77291
+ Migrating to CreateAssets (20111216144515)
77292
+ Migrating to CreateStructures (20111216144915)
77293
+ Migrating to CreateUsers (20111216145015)
77294
+ Migrating to CreateSettings (20120611095315)
77295
+  (31.1ms) SELECT @@FOREIGN_KEY_CHECKS
77296
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
77297
+  (28.2ms) SELECT DATABASE() as db
77298
+  (61.2ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
77299
+  (968.8ms) TRUNCATE TABLE `assets`;
77300
+  (514.1ms) TRUNCATE TABLE `audits`;
77301
+  (517.5ms) TRUNCATE TABLE `meta_tags`;
77302
+  (506.4ms) TRUNCATE TABLE `page_parts`;
77303
+  (360.9ms) TRUNCATE TABLE `posts`;
77304
+  (471.5ms) TRUNCATE TABLE `settings`;
77305
+  (411.3ms) TRUNCATE TABLE `structures`;
77306
+  (636.2ms) TRUNCATE TABLE `users`;
77307
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77308
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77309
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77310
+  (433.3ms) TRUNCATE TABLE `assets`;
77311
+  (448.8ms) TRUNCATE TABLE `audits`;
77312
+  (417.8ms) TRUNCATE TABLE `meta_tags`;
77313
+  (217.8ms) TRUNCATE TABLE `page_parts`;
77314
+  (316.4ms) TRUNCATE TABLE `posts`;
77315
+  (205.6ms) TRUNCATE TABLE `settings`;
77316
+  (383.1ms) TRUNCATE TABLE `structures`;
77317
+  (465.5ms) TRUNCATE TABLE `users`;
77318
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77319
+  (0.1ms) BEGIN
77320
+ User Exists (28.0ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '1359992923@gmail.com' LIMIT 1
77321
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:44', '2013-02-04 15:48:44', NULL, NULL, '1359992923@gmail.com', '0233f1ff24120d120b7442f8c0b8d81ca62cb7413d7a5da7f0f7315e016ead28eaa034d640b8b401c35d6aaf5e66182cb1492e63a483830149cee82f2d4f89b3', 0, NULL, NULL, NULL, 'Admin', 'd4wxZ3PtE5u3mf2yUjB1', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:48:44')
77322
+  (40.7ms) COMMIT
77323
+  (0.1ms) BEGIN
77324
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
77325
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:44', '2013-02-04 15:48:44', NULL, NULL, 'testing1@example.com', 'd3202bd56419d802dcfd84690f57cac683fa0a4b1e68f175a9cbf13081289de62c9b951859dccbd53bcb5cafdc9a7855b754fb29c315a216118f142bda810678', 0, NULL, NULL, NULL, 'Test', 'Rkgj1RfU9WvZSLGmq6Yj', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 15:48:44')
77326
+  (54.7ms) COMMIT
77327
+  (0.2ms) BEGIN
77328
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77329
+ SQL (0.5ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:48:44', 0, 1, 1, 1, NULL, 2, NULL, 2, 'slug1', 'Structure', '2013-02-04 15:48:44')
77330
+ Structure Load (5.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
77331
+ SQL (13.1ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
77332
+  (44.5ms) COMMIT
77333
+  (0.1ms) BEGIN
77334
+ SQL (43.9ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:48:45', 1, 1, 'Default title', '2013-02-04 15:48:45')
77335
+  (46.1ms) COMMIT
77336
+  (0.1ms) BEGIN
77337
+  (35.2ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
77338
+ SQL (0.4ms) INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2013-02-04 15:48:45', NULL, 2, 'User', NULL, 1)
77339
+  (44.1ms) COMMIT
77340
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:48:45 +0200
77341
+  (0.2ms) BEGIN
77342
+  (0.1ms) COMMIT
77343
+  (0.1ms) BEGIN
77344
+  (25.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:48:45', `current_sign_in_at` = '2013-02-04 15:48:45', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:48:45' WHERE `users`.`id` = 1
77345
+  (33.2ms) COMMIT
77346
+ Processing by Sunrise::DashboardController#index as HTML
77347
+ Audited::Adapters::ActiveRecord::Audit Load (0.6ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
77348
+ User Load (27.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
77349
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (5.4ms)
77350
+  (22.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
77351
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (702.0ms)
77352
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (108.6ms)
77353
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (63.0ms)
77354
+ Completed 200 OK in 1197ms (Views: 1113.9ms | ActiveRecord: 50.5ms)
77355
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:48:47 +0200
77356
+  (0.1ms) BEGIN
77357
+  (0.1ms) COMMIT
77358
+  (0.1ms) BEGIN
77359
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:48:47', `sign_in_count` = 2, `updated_at` = '2013-02-04 15:48:47' WHERE `users`.`id` = 1
77360
+  (198.9ms) COMMIT
77361
+ Processing by Sunrise::DashboardController#index as HTML
77362
+ Audited::Adapters::ActiveRecord::Audit Load (0.2ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
77363
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
77364
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (3.5ms)
77365
+  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
77366
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
77367
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.2ms)
77368
+ Completed 200 OK in 30ms (Views: 19.2ms | ActiveRecord: 0.8ms)
77369
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:48:48 +0200
77370
+ Processing by Sunrise::DashboardController#index as HTML
77371
+ Completed 401 Unauthorized in 0ms
77372
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:48:48 +0200
77373
+ Processing by Devise::SessionsController#new as HTML
77374
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (3.6ms)
77375
+ Completed 200 OK in 189ms (Views: 187.0ms | ActiveRecord: 0.0ms)
77376
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77377
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77378
+  (1033.2ms) TRUNCATE TABLE `assets`;
77379
+  (402.7ms) TRUNCATE TABLE `audits`;
77380
+  (206.7ms) TRUNCATE TABLE `meta_tags`;
77381
+  (240.8ms) TRUNCATE TABLE `page_parts`;
77382
+  (350.2ms) TRUNCATE TABLE `posts`;
77383
+  (117.1ms) TRUNCATE TABLE `settings`;
77384
+  (318.9ms) TRUNCATE TABLE `structures`;
77385
+  (376.5ms) TRUNCATE TABLE `users`;
77386
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77387
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
77388
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77389
+  (350.2ms) TRUNCATE TABLE `assets`;
77390
+  (357.7ms) TRUNCATE TABLE `audits`;
77391
+  (168.8ms) TRUNCATE TABLE `meta_tags`;
77392
+  (262.7ms) TRUNCATE TABLE `page_parts`;
77393
+  (294.7ms) TRUNCATE TABLE `posts`;
77394
+  (161.3ms) TRUNCATE TABLE `settings`;
77395
+  (329.6ms) TRUNCATE TABLE `structures`;
77396
+  (387.8ms) TRUNCATE TABLE `users`;
77397
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77398
+  (0.1ms) BEGIN
77399
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
77400
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:53', '2013-02-04 15:48:53', NULL, NULL, 'testing2@example.com', '2831a2061c1af8b7855402a3cc13e82fb0814d3a12dc499daeab25295e246f578d93f348a7ff737bbebfda4305ad9776a8921d3ea15ddfcf2ec26159e539eb8d', 0, NULL, NULL, NULL, 'Admin', '8qmfKPYyVsUpGFLkvcsV', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:48:53')
77401
+  (36.0ms) COMMIT
77402
+  (0.1ms) BEGIN
77403
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77404
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:48:53', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:48:53')
77405
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
77406
+ SQL (40.1ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
77407
+  (40.3ms) COMMIT
77408
+  (0.1ms) BEGIN
77409
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77410
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:48:53', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug2', 'Structure', '2013-02-04 15:48:53')
77411
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
77412
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77413
+ SQL (25.1ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
77414
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
77415
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77416
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77417
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77418
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77419
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
77420
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77421
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77422
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77423
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77424
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77425
+  (41.1ms) COMMIT
77426
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 17:48:53 +0200
77427
+  (0.1ms) BEGIN
77428
+  (0.1ms) COMMIT
77429
+  (0.1ms) BEGIN
77430
+  (1.1ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:48:53', `current_sign_in_at` = '2013-02-04 15:48:53', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:48:53' WHERE `users`.`id` = 1
77431
+  (24.1ms) COMMIT
77432
+ Processing by Sunrise::ManagerController#show as HTML
77433
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
77434
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77435
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
77436
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (1.0ms)
77437
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.2ms)
77438
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (68.3ms)
77439
+ Completed 200 OK in 139ms (Views: 92.3ms | ActiveRecord: 0.5ms)
77440
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 17:48:54 +0200
77441
+  (0.1ms) BEGIN
77442
+  (0.1ms) COMMIT
77443
+  (0.1ms) BEGIN
77444
+  (29.6ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:48:54', `sign_in_count` = 2, `updated_at` = '2013-02-04 15:48:54' WHERE `users`.`id` = 1
77445
+  (37.2ms) COMMIT
77446
+ Processing by Sunrise::ManagerController#show as HTML
77447
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
77448
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77449
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
77450
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
77451
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.8ms)
77452
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.3ms)
77453
+ Completed 200 OK in 17ms (Views: 12.1ms | ActiveRecord: 0.2ms)
77454
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 17:48:54 +0200
77455
+ Processing by Sunrise::ManagerController#show as HTML
77456
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
77457
+ Completed 401 Unauthorized in 0ms
77458
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:48:54 +0200
77459
+ Processing by Devise::SessionsController#new as HTML
77460
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
77461
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
77462
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77463
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77464
+  (212.9ms) TRUNCATE TABLE `assets`;
77465
+  (286.1ms) TRUNCATE TABLE `audits`;
77466
+  (317.0ms) TRUNCATE TABLE `meta_tags`;
77467
+  (162.2ms) TRUNCATE TABLE `page_parts`;
77468
+  (271.0ms) TRUNCATE TABLE `posts`;
77469
+  (161.3ms) TRUNCATE TABLE `settings`;
77470
+  (261.2ms) TRUNCATE TABLE `structures`;
77471
+  (354.3ms) TRUNCATE TABLE `users`;
77472
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77473
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
77474
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77475
+  (306.3ms) TRUNCATE TABLE `assets`;
77476
+  (341.5ms) TRUNCATE TABLE `audits`;
77477
+  (162.2ms) TRUNCATE TABLE `meta_tags`;
77478
+  (259.7ms) TRUNCATE TABLE `page_parts`;
77479
+  (297.7ms) TRUNCATE TABLE `posts`;
77480
+  (127.4ms) TRUNCATE TABLE `settings`;
77481
+  (296.5ms) TRUNCATE TABLE `structures`;
77482
+  (477.0ms) TRUNCATE TABLE `users`;
77483
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77484
+  (0.1ms) BEGIN
77485
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
77486
+ SQL (34.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:58', '2013-02-04 15:48:58', NULL, NULL, 'testing3@example.com', 'c26d0d24e87f2075f0b82182718a24a0885475d0f6308a8fe3ff3c97b19e15fa0aeae05a493ab05407042a907204a6b12ea82206469673e4e9b7d774c63edeb3', 0, NULL, NULL, NULL, 'Admin', 'AVSYQbpMNC2jjVhcyGHN', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:48:58')
77487
+  (46.8ms) COMMIT
77488
+  (0.1ms) BEGIN
77489
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77490
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:48:58', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:48:58')
77491
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
77492
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
77493
+  (36.7ms) COMMIT
77494
+  (0.1ms) BEGIN
77495
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77496
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:48:58', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug3', 'Structure', '2013-02-04 15:48:58')
77497
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
77498
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77499
+ SQL (25.9ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
77500
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
77501
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77502
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77503
+ SQL (1.7ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77504
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77505
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
77506
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77507
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77508
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77509
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77510
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77511
+  (48.4ms) COMMIT
77512
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:48:58 +0200
77513
+  (0.1ms) BEGIN
77514
+  (0.1ms) COMMIT
77515
+  (0.1ms) BEGIN
77516
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:48:58', `current_sign_in_at` = '2013-02-04 15:48:58', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:48:58' WHERE `users`.`id` = 1
77517
+  (36.3ms) COMMIT
77518
+ Processing by Sunrise::ManagerController#index as HTML
77519
+ Parameters: {"model_name"=>"structures"}
77520
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77521
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
77522
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.6ms)
77523
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (178.4ms)
77524
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
77525
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (63.1ms)
77526
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (66.0ms)
77527
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (66.5ms)
77528
+ Completed 200 OK in 291ms (Views: 280.5ms | ActiveRecord: 1.3ms)
77529
+ Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
77530
+ Processing by Sunrise::ManagerController#destroy as HTML
77531
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
77532
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77533
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77534
+  (0.1ms) BEGIN
77535
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77536
+ SQL (20.7ms) DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
77537
+ SQL (0.3ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 3) ORDER BY `structures`.`lft`
77538
+ SQL (0.3ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 3) ORDER BY `structures`.`lft`
77539
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
77540
+ MetaTag Load (0.4ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
77541
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2
77542
+ SQL (0.3ms) DELETE FROM `structures` WHERE `structures`.`id` = 2
77543
+  (104.1ms) COMMIT
77544
+ Redirected to http://www.example.com/manage/structures
77545
+ Completed 302 Found in 376ms (ActiveRecord: 0.0ms)
77546
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
77547
+ Processing by Sunrise::ManagerController#index as HTML
77548
+ Parameters: {"model_name"=>"structures"}
77549
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77550
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77551
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.5ms)
77552
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
77553
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
77554
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.9ms)
77555
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.3ms)
77556
+ Completed 200 OK in 21ms (Views: 14.7ms | ActiveRecord: 0.8ms)
77557
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77558
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
77559
+ Processing by Sunrise::ManagerController#index as HTML
77560
+ Parameters: {"model_name"=>"structures"}
77561
+ Completed 401 Unauthorized in 0ms
77562
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
77563
+ Processing by Devise::SessionsController#new as HTML
77564
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.1ms)
77565
+ Completed 200 OK in 73ms (Views: 72.1ms | ActiveRecord: 0.0ms)
77566
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77567
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77568
+  (792.7ms) TRUNCATE TABLE `assets`;
77569
+  (411.0ms) TRUNCATE TABLE `audits`;
77570
+  (428.1ms) TRUNCATE TABLE `meta_tags`;
77571
+  (217.9ms) TRUNCATE TABLE `page_parts`;
77572
+  (283.7ms) TRUNCATE TABLE `posts`;
77573
+  (194.3ms) TRUNCATE TABLE `settings`;
77574
+  (305.9ms) TRUNCATE TABLE `structures`;
77575
+  (377.0ms) TRUNCATE TABLE `users`;
77576
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77577
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77578
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77579
+  (317.4ms) TRUNCATE TABLE `assets`;
77580
+  (363.9ms) TRUNCATE TABLE `audits`;
77581
+  (162.4ms) TRUNCATE TABLE `meta_tags`;
77582
+  (239.2ms) TRUNCATE TABLE `page_parts`;
77583
+  (505.5ms) TRUNCATE TABLE `posts`;
77584
+  (128.2ms) TRUNCATE TABLE `settings`;
77585
+  (351.1ms) TRUNCATE TABLE `structures`;
77586
+  (364.7ms) TRUNCATE TABLE `users`;
77587
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77588
+  (0.1ms) BEGIN
77589
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
77590
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:05', '2013-02-04 15:49:05', NULL, NULL, 'testing4@example.com', 'd1e2dcf37bc0f632473f99875da02ea85d16a48b827758fbd30e832cfafb66519cddbac6e2d309047de5d42c0819b2b5b22410d4adcff481a8fbe6fcc7b68f43', 0, NULL, NULL, NULL, 'Admin', 'xyCdiCsDEozH4PT6oDgQ', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:05')
77591
+  (36.2ms) COMMIT
77592
+  (0.1ms) BEGIN
77593
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77594
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:05', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:05')
77595
+ Structure Load (34.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
77596
+ SQL (7.8ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
77597
+  (50.2ms) COMMIT
77598
+  (0.1ms) BEGIN
77599
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77600
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:05', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug4', 'Structure', '2013-02-04 15:49:05')
77601
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
77602
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77603
+ SQL (52.0ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
77604
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
77605
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77606
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77607
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77608
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77609
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
77610
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77611
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77612
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77613
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77614
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77615
+  (56.1ms) COMMIT
77616
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:05 +0200
77617
+  (0.2ms) BEGIN
77618
+  (0.1ms) COMMIT
77619
+  (0.1ms) BEGIN
77620
+  (53.8ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:05', `current_sign_in_at` = '2013-02-04 15:49:05', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:05' WHERE `users`.`id` = 1
77621
+  (49.1ms) COMMIT
77622
+ Processing by Sunrise::ManagerController#edit as HTML
77623
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
77624
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77625
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
77626
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77627
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
77628
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (86.8ms)
77629
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
77630
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.7ms)
77631
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (597.2ms)
77632
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
77633
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (1.3ms)
77634
+ Completed 200 OK in 645ms (Views: 613.2ms | ActiveRecord: 2.1ms)
77635
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
77636
+ Processing by Sunrise::ManagerController#update as HTML
77637
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug4", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
77638
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77639
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77640
+  (0.1ms) BEGIN
77641
+ MetaTag Load (0.6ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
77642
+  (0.5ms) UPDATE `structures` SET `title` = 'Title updated', `redirect_url` = '', `kind` = 2, `position` = 1, `is_visible` = 0, `updated_at` = '2013-02-04 15:49:06' WHERE `structures`.`id` = 2
77643
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77644
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77645
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77646
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77647
+  (37.2ms) COMMIT
77648
+ Redirected to http://www.example.com/manage/structures
77649
+ Completed 302 Found in 71ms (ActiveRecord: 0.0ms)
77650
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
77651
+ Processing by Sunrise::ManagerController#index as HTML
77652
+ Parameters: {"model_name"=>"structures"}
77653
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77654
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77655
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
77656
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
77657
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.6ms)
77658
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
77659
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
77660
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.8ms)
77661
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.3ms)
77662
+ Completed 200 OK in 24ms (Views: 18.5ms | ActiveRecord: 1.5ms)
77663
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77664
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
77665
+  (0.1ms) BEGIN
77666
+  (0.1ms) COMMIT
77667
+  (0.1ms) BEGIN
77668
+  (26.0ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:49:06', `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:06' WHERE `users`.`id` = 1
77669
+  (42.3ms) COMMIT
77670
+ Processing by Sunrise::ManagerController#edit as HTML
77671
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
77672
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77673
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
77674
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77675
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
77676
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.3ms)
77677
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
77678
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.6ms)
77679
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.5ms)
77680
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
77681
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
77682
+ Completed 200 OK in 40ms (Views: 35.8ms | ActiveRecord: 1.1ms)
77683
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
77684
+ Processing by Sunrise::ManagerController#update as HTML
77685
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug4", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
77686
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77687
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77688
+  (0.1ms) BEGIN
77689
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
77690
+ CACHE (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77691
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77692
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77693
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77694
+  (14.8ms) COMMIT
77695
+ Redirected to http://www.example.com/manage/structures
77696
+ Completed 302 Found in 32ms (ActiveRecord: 0.0ms)
77697
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
77698
+ Processing by Sunrise::ManagerController#index as HTML
77699
+ Parameters: {"model_name"=>"structures"}
77700
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77701
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77702
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
77703
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
77704
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (5.2ms)
77705
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.5ms)
77706
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
77707
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.6ms)
77708
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.0ms)
77709
+ Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 0.5ms)
77710
+  (0.1ms) BEGIN
77711
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
77712
+ PagePart Exists (0.6ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
77713
+ PagePart Exists (0.4ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
77714
+ SQL (0.4ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2013-02-04 15:49:06', 'main', 2, 'Structure', '2013-02-04 15:49:06')
77715
+ SQL (0.2ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2013-02-04 15:49:06', 'sidebar', 2, 'Structure', '2013-02-04 15:49:06')
77716
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77717
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77718
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77719
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77720
+  (37.3ms) COMMIT
77721
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
77722
+  (0.1ms) BEGIN
77723
+  (0.1ms) COMMIT
77724
+  (0.1ms) BEGIN
77725
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:06', `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:06' WHERE `users`.`id` = 1
77726
+  (25.1ms) COMMIT
77727
+ Processing by Sunrise::ManagerController#edit as HTML
77728
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
77729
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77730
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
77731
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
77732
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (25.0ms)
77733
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.5ms)
77734
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
77735
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
77736
+ Completed 200 OK in 59ms (Views: 36.1ms | ActiveRecord: 0.8ms)
77737
+ Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
77738
+ Processing by Sunrise::ManagerController#update as HTML
77739
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
77740
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77741
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77742
+  (0.1ms) BEGIN
77743
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
77744
+ PagePart Exists (0.6ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`id` != 1 AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
77745
+ PagePart Exists (0.5ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`id` != 2 AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
77746
+  (0.4ms) UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2013-02-04 15:49:06' WHERE `page_parts`.`id` = 1
77747
+  (25.3ms) UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2013-02-04 15:49:06' WHERE `page_parts`.`id` = 2
77748
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77749
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77750
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77751
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77752
+  (40.1ms) COMMIT
77753
+ Redirected to http://www.example.com/manage/structures
77754
+ Completed 302 Found in 95ms (ActiveRecord: 0.0ms)
77755
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:07 +0200
77756
+ Processing by Sunrise::ManagerController#index as HTML
77757
+ Parameters: {"model_name"=>"structures"}
77758
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
77759
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77760
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
77761
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.1ms)
77762
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (5.4ms)
77763
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.6ms)
77764
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
77765
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.7ms)
77766
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
77767
+ Completed 200 OK in 22ms (Views: 17.2ms | ActiveRecord: 0.5ms)
77768
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77769
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
77770
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:07 +0200
77771
+ Processing by Sunrise::ManagerController#edit as HTML
77772
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
77773
+ Completed 401 Unauthorized in 0ms
77774
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:07 +0200
77775
+ Processing by Devise::SessionsController#new as HTML
77776
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
77777
+ Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)
77778
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77779
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77780
+  (218.2ms) TRUNCATE TABLE `assets`;
77781
+  (364.2ms) TRUNCATE TABLE `audits`;
77782
+  (283.6ms) TRUNCATE TABLE `meta_tags`;
77783
+  (206.6ms) TRUNCATE TABLE `page_parts`;
77784
+  (248.4ms) TRUNCATE TABLE `posts`;
77785
+  (139.1ms) TRUNCATE TABLE `settings`;
77786
+  (283.9ms) TRUNCATE TABLE `structures`;
77787
+  (431.1ms) TRUNCATE TABLE `users`;
77788
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77789
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
77790
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77791
+  (329.5ms) TRUNCATE TABLE `assets`;
77792
+  (365.3ms) TRUNCATE TABLE `audits`;
77793
+  (162.2ms) TRUNCATE TABLE `meta_tags`;
77794
+  (282.8ms) TRUNCATE TABLE `page_parts`;
77795
+  (309.0ms) TRUNCATE TABLE `posts`;
77796
+  (147.6ms) TRUNCATE TABLE `settings`;
77797
+  (329.9ms) TRUNCATE TABLE `structures`;
77798
+  (366.2ms) TRUNCATE TABLE `users`;
77799
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77800
+  (0.1ms) BEGIN
77801
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
77802
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:11', '2013-02-04 15:49:11', NULL, NULL, 'testing5@example.com', 'dc7c903a2c889551557ecf7e3408cf636fd3621b19c0aee0b537b53c577dd84ba2b5e7b0d84addd4151bd3ed8755be1364d7764d71cc15e51b39e493414fd117', 0, NULL, NULL, NULL, 'Admin', '5HqsY4fmVa9rL6NnCZ8m', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:11')
77803
+  (42.3ms) COMMIT
77804
+ Started GET "/manage/whatever/new" for 127.0.0.1 at 2013-02-04 17:49:11 +0200
77805
+  (0.1ms) BEGIN
77806
+  (0.1ms) COMMIT
77807
+  (0.1ms) BEGIN
77808
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:11', `current_sign_in_at` = '2013-02-04 15:49:11', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:11' WHERE `users`.`id` = 1
77809
+  (30.4ms) COMMIT
77810
+ Processing by Sunrise::ManagerController#new as HTML
77811
+ Parameters: {"model_name"=>"whatever"}
77812
+ Completed 404 Not Found in 12ms
77813
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:11 +0200
77814
+  (0.2ms) BEGIN
77815
+  (0.1ms) COMMIT
77816
+  (0.1ms) BEGIN
77817
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:11' WHERE `users`.`id` = 1
77818
+  (31.6ms) COMMIT
77819
+ Processing by Sunrise::ManagerController#new as HTML
77820
+ Parameters: {"model_name"=>"structures"}
77821
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
77822
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77823
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (16.2ms)
77824
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
77825
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (26.3ms)
77826
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
77827
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (1.3ms)
77828
+ Completed 200 OK in 61ms (Views: 40.3ms | ActiveRecord: 0.7ms)
77829
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:11 +0200
77830
+  (0.1ms) BEGIN
77831
+  (0.1ms) COMMIT
77832
+  (0.1ms) BEGIN
77833
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:11' WHERE `users`.`id` = 1
77834
+  (64.6ms) COMMIT
77835
+ Processing by Sunrise::ManagerController#new as HTML
77836
+ Parameters: {"model_name"=>"structures"}
77837
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
77838
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
77839
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (14.9ms)
77840
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
77841
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (24.5ms)
77842
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
77843
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
77844
+ Completed 200 OK in 35ms (Views: 32.3ms | ActiveRecord: 0.2ms)
77845
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:12 +0200
77846
+ Processing by Sunrise::ManagerController#new as HTML
77847
+ Parameters: {"model_name"=>"structures"}
77848
+ Completed 401 Unauthorized in 0ms
77849
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:12 +0200
77850
+ Processing by Devise::SessionsController#new as HTML
77851
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
77852
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
77853
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77854
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77855
+  (164.9ms) TRUNCATE TABLE `assets`;
77856
+  (319.6ms) TRUNCATE TABLE `audits`;
77857
+  (386.1ms) TRUNCATE TABLE `meta_tags`;
77858
+  (295.5ms) TRUNCATE TABLE `page_parts`;
77859
+  (161.3ms) TRUNCATE TABLE `posts`;
77860
+  (308.4ms) TRUNCATE TABLE `settings`;
77861
+  (374.1ms) TRUNCATE TABLE `structures`;
77862
+  (387.0ms) TRUNCATE TABLE `users`;
77863
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77864
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77865
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77866
+  (341.4ms) TRUNCATE TABLE `assets`;
77867
+  (1455.2ms) TRUNCATE TABLE `audits`;
77868
+  (296.0ms) TRUNCATE TABLE `meta_tags`;
77869
+  (140.1ms) TRUNCATE TABLE `page_parts`;
77870
+  (249.6ms) TRUNCATE TABLE `posts`;
77871
+  (138.9ms) TRUNCATE TABLE `settings`;
77872
+  (283.9ms) TRUNCATE TABLE `structures`;
77873
+  (431.1ms) TRUNCATE TABLE `users`;
77874
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77875
+  (0.1ms) BEGIN
77876
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
77877
+ SQL (7.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:17', '2013-02-04 15:49:17', NULL, NULL, 'testing6@example.com', '1ac638d4c39129391bfafc0a3fab9b2647e61b79379a8a370d2701df836e73a61b32d43c25c3efc29da16f98b40766c50c1a6e7753c6e5b48794a98adcbd235b', 0, NULL, NULL, NULL, 'Admin', '94q2yhZ6nox8f2BJ4Zt5', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:17')
77878
+  (108.3ms) COMMIT
77879
+  (0.1ms) BEGIN
77880
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77881
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:17', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:17')
77882
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
77883
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
77884
+  (118.8ms) COMMIT
77885
+  (0.1ms) BEGIN
77886
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
77887
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:18', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug5', 'Structure', '2013-02-04 15:49:18')
77888
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
77889
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77890
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
77891
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
77892
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77893
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77894
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77895
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77896
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
77897
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
77898
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
77899
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77900
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
77901
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
77902
+  (32.3ms) COMMIT
77903
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
77904
+  (0.0ms) BEGIN
77905
+  (0.0ms) COMMIT
77906
+  (0.0ms) BEGIN
77907
+  (0.0ms) UPDATE `users` SET `last_sign_in_at` = '2012-01-01 16:00:00', `current_sign_in_at` = '2012-01-01 16:00:00', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-01-01 16:00:00' WHERE `users`.`id` = 1
77908
+  (0.0ms) COMMIT
77909
+ Processing by Sunrise::ManagerController#export as XLSX
77910
+ Parameters: {"model_name"=>"users"}
77911
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
77912
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
77913
+ Sent data users_2012-01-01_16h00m00.xls (0.0ms)
77914
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
77915
+ Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
77916
+  (0.0ms) BEGIN
77917
+  (0.0ms) COMMIT
77918
+  (0.0ms) BEGIN
77919
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
77920
+  (0.0ms) COMMIT
77921
+ Processing by Sunrise::ManagerController#export as CSV
77922
+ Parameters: {"model_name"=>"users"}
77923
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
77924
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
77925
+ Sent data users_2012-01-01_16h00m00.csv (0.0ms)
77926
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
77927
+ Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
77928
+  (0.0ms) BEGIN
77929
+  (0.0ms) COMMIT
77930
+  (0.0ms) BEGIN
77931
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
77932
+  (0.0ms) COMMIT
77933
+ Processing by Sunrise::ManagerController#export as JSON
77934
+ Parameters: {"model_name"=>"users"}
77935
+ User Load (0.0ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
77936
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
77937
+  (0.0ms) BEGIN
77938
+ SQL (0.0ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES (NULL, '2012-01-01 16:00:00', 1, 2, 'Some title', '2012-01-01 16:00:00')
77939
+  (0.0ms) COMMIT
77940
+ Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
77941
+  (0.0ms) BEGIN
77942
+  (0.0ms) COMMIT
77943
+  (0.0ms) BEGIN
77944
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
77945
+  (0.0ms) COMMIT
77946
+ Processing by Sunrise::ManagerController#export as CSV
77947
+ Parameters: {"model_name"=>"posts"}
77948
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
77949
+ Post Load (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
77950
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
77951
+ Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
77952
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
77953
+ Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
77954
+  (0.0ms) BEGIN
77955
+  (0.0ms) COMMIT
77956
+  (0.0ms) BEGIN
77957
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
77958
+  (0.0ms) COMMIT
77959
+ Processing by Sunrise::ManagerController#export as XLSX
77960
+ Parameters: {"model_name"=>"structures"}
77961
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
77962
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
77963
+ Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
77964
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
77965
+ Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
77966
+  (0.0ms) BEGIN
77967
+  (0.0ms) COMMIT
77968
+  (0.0ms) BEGIN
77969
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
77970
+  (0.0ms) COMMIT
77971
+ Processing by Sunrise::ManagerController#export as XML
77972
+ Parameters: {"model_name"=>"structures"}
77973
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
77974
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
77975
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2013-02-04 17:49:19 +0200
77976
+ Processing by Sunrise::ManagerController#export as XLSX
77977
+ Parameters: {"model_name"=>"users"}
77978
+ Completed 401 Unauthorized in 0ms
77979
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
77980
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77981
+  (189.4ms) TRUNCATE TABLE `assets`;
77982
+  (297.3ms) TRUNCATE TABLE `audits`;
77983
+  (306.0ms) TRUNCATE TABLE `meta_tags`;
77984
+  (162.3ms) TRUNCATE TABLE `page_parts`;
77985
+  (272.1ms) TRUNCATE TABLE `posts`;
77986
+  (341.2ms) TRUNCATE TABLE `settings`;
77987
+  (274.7ms) TRUNCATE TABLE `structures`;
77988
+  (329.9ms) TRUNCATE TABLE `users`;
77989
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
77990
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
77991
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
77992
+  (230.3ms) TRUNCATE TABLE `assets`;
77993
+  (287.1ms) TRUNCATE TABLE `audits`;
77994
+  (305.4ms) TRUNCATE TABLE `meta_tags`;
77995
+  (173.3ms) TRUNCATE TABLE `page_parts`;
77996
+  (215.2ms) TRUNCATE TABLE `posts`;
77997
+  (183.8ms) TRUNCATE TABLE `settings`;
77998
+  (253.9ms) TRUNCATE TABLE `structures`;
77999
+  (608.7ms) TRUNCATE TABLE `users`;
78000
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78001
+  (0.1ms) BEGIN
78002
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
78003
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:24', '2013-02-04 15:49:24', NULL, NULL, 'testing7@example.com', '7645d6f314012673364df658e7c59f85ffeac1c44e951c40b6463ce88d0aeef40b047576a84dfd52cab99e52e82c02ed297f4b06b0842b649b1e1a9397990781', 0, NULL, NULL, NULL, 'Admin', 'fa1969TCCGi5v1W8MtqH', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:24')
78004
+  (59.3ms) COMMIT
78005
+  (0.1ms) BEGIN
78006
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78007
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:24', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:24')
78008
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78009
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78010
+  (35.9ms) COMMIT
78011
+  (0.1ms) BEGIN
78012
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78013
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:24', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug6', 'Structure', '2013-02-04 15:49:24')
78014
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
78015
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78016
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
78017
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
78018
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78019
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78020
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78021
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78022
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
78023
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78024
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78025
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78026
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78027
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78028
+  (42.1ms) COMMIT
78029
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
78030
+  (0.1ms) BEGIN
78031
+  (0.1ms) COMMIT
78032
+  (0.1ms) BEGIN
78033
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:24', `current_sign_in_at` = '2013-02-04 15:49:24', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1
78034
+  (47.4ms) COMMIT
78035
+ Processing by Sunrise::DashboardController#index as HTML
78036
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
78037
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (0.0ms)
78038
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
78039
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
78040
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.2ms)
78041
+ Completed 200 OK in 25ms (Views: 13.1ms | ActiveRecord: 0.9ms)
78042
+ Started GET "/manage/whatever" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
78043
+  (0.1ms) BEGIN
78044
+  (0.1ms) COMMIT
78045
+  (0.1ms) BEGIN
78046
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1
78047
+  (63.5ms) COMMIT
78048
+ Processing by Sunrise::ManagerController#index as HTML
78049
+ Parameters: {"model_name"=>"whatever"}
78050
+ Completed 404 Not Found in 10ms
78051
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
78052
+  (0.1ms) BEGIN
78053
+  (0.1ms) COMMIT
78054
+  (0.1ms) BEGIN
78055
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1
78056
+  (67.2ms) COMMIT
78057
+ Processing by Sunrise::ManagerController#index as HTML
78058
+ Parameters: {"model_name"=>"structures"}
78059
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
78060
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
78061
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.1ms)
78062
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.0ms)
78063
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
78064
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78065
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.7ms)
78066
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
78067
+ Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 1.1ms)
78068
+ Started GET "/manage/users" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
78069
+  (0.1ms) BEGIN
78070
+  (0.1ms) COMMIT
78071
+  (0.1ms) BEGIN
78072
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 4, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1
78073
+  (142.2ms) COMMIT
78074
+ Processing by Sunrise::ManagerController#index as HTML
78075
+ Parameters: {"model_name"=>"users"}
78076
+ User Load (0.5ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
78077
+ Avatar Load (0.6ms) SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_type` = 'User' AND `assets`.`assetable_id` IN (1) ORDER BY `assets`.sort_order
78078
+ Rendered sunrise/manager/users/thumbs/_record.html.erb (4.4ms)
78079
+  (0.4ms) SELECT COUNT(*) FROM `users` 
78080
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78081
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78082
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78083
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (39.9ms)
78084
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (55.9ms)
78085
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (1.7ms)
78086
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (1.5ms)
78087
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (1.5ms)
78088
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (2.0ms)
78089
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_export.html.erb (1.4ms)
78090
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (25.4ms)
78091
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (94.0ms)
78092
+ Completed 200 OK in 307ms (Views: 286.7ms | ActiveRecord: 3.5ms)
78093
+ Started GET "/manage/pages" for 127.0.0.1 at 2013-02-04 17:49:25 +0200
78094
+  (0.1ms) BEGIN
78095
+  (0.1ms) COMMIT
78096
+  (0.1ms) BEGIN
78097
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:49:25', `sign_in_count` = 5, `updated_at` = '2013-02-04 15:49:25' WHERE `users`.`id` = 1
78098
+  (45.0ms) COMMIT
78099
+ Processing by Sunrise::ManagerController#index as HTML
78100
+ Parameters: {"model_name"=>"pages"}
78101
+ Completed 404 Not Found in 2ms
78102
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:25 +0200
78103
+ Processing by Sunrise::ManagerController#index as HTML
78104
+ Parameters: {"model_name"=>"structures"}
78105
+ Completed 401 Unauthorized in 0ms
78106
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:25 +0200
78107
+ Processing by Devise::SessionsController#new as HTML
78108
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
78109
+ Completed 200 OK in 79ms (Views: 77.6ms | ActiveRecord: 0.0ms)
78110
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78111
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78112
+  (184.6ms) TRUNCATE TABLE `assets`;
78113
+  (297.5ms) TRUNCATE TABLE `audits`;
78114
+  (283.8ms) TRUNCATE TABLE `meta_tags`;
78115
+  (162.1ms) TRUNCATE TABLE `page_parts`;
78116
+  (238.0ms) TRUNCATE TABLE `posts`;
78117
+  (150.1ms) TRUNCATE TABLE `settings`;
78118
+  (327.7ms) TRUNCATE TABLE `structures`;
78119
+  (455.8ms) TRUNCATE TABLE `users`;
78120
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78121
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78122
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78123
+  (372.1ms) TRUNCATE TABLE `assets`;
78124
+  (330.3ms) TRUNCATE TABLE `audits`;
78125
+  (162.1ms) TRUNCATE TABLE `meta_tags`;
78126
+  (900.6ms) TRUNCATE TABLE `page_parts`;
78127
+  (406.9ms) TRUNCATE TABLE `posts`;
78128
+  (503.5ms) TRUNCATE TABLE `settings`;
78129
+  (207.6ms) TRUNCATE TABLE `structures`;
78130
+  (318.8ms) TRUNCATE TABLE `users`;
78131
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78132
+  (0.1ms) BEGIN
78133
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
78134
+ SQL (17.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:30', '2013-02-04 15:49:30', NULL, NULL, 'testing8@example.com', 'aa73d5f9a87c150cf86d32d3385b7f2e5036e01e8a7453daea6f26a13ba1b7e12afb0b2ca95c87df7ce4180d570b7bda118352378f2e54144e85ee4b044506b0', 0, NULL, NULL, NULL, 'Admin', 'pzHp3trgjjUzRLyu9yqS', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:30')
78135
+  (52.6ms) COMMIT
78136
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:30 +0200
78137
+  (0.1ms) BEGIN
78138
+  (0.1ms) COMMIT
78139
+  (0.1ms) BEGIN
78140
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:30', `current_sign_in_at` = '2013-02-04 15:49:30', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:30' WHERE `users`.`id` = 1
78141
+  (69.4ms) COMMIT
78142
+ Processing by Sunrise::ManagerController#new as HTML
78143
+ Parameters: {"model_name"=>"structures"}
78144
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78145
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
78146
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (16.0ms)
78147
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.4ms)
78148
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (26.0ms)
78149
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
78150
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
78151
+ Completed 200 OK in 36ms (Views: 33.3ms | ActiveRecord: 0.6ms)
78152
+ Started POST "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:30 +0200
78153
+ Processing by Sunrise::ManagerController#create as HTML
78154
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Good day", "redirect_url"=>"", "slug"=>"", "parent_id"=>"", "kind"=>"1", "position"=>"2", "is_visible"=>"1", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Create Structure", "model_name"=>"structures"}
78155
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78156
+  (0.1ms) BEGIN
78157
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78158
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:31', 0, 1, 1, 1, NULL, 2, '', 2, 'good-day', 'Good day', '2013-02-04 15:49:31')
78159
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78160
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78161
+  (46.4ms) COMMIT
78162
+ Redirected to http://www.example.com/manage/structures
78163
+ Completed 302 Found in 523ms (ActiveRecord: 0.0ms)
78164
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:31 +0200
78165
+ Processing by Sunrise::ManagerController#index as HTML
78166
+ Parameters: {"model_name"=>"structures"}
78167
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78168
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
78169
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.4ms)
78170
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
78171
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78172
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.8ms)
78173
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
78174
+ Completed 200 OK in 20ms (Views: 14.0ms | ActiveRecord: 0.8ms)
78175
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
78176
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:31 +0200
78177
+ Processing by Sunrise::ManagerController#new as HTML
78178
+ Parameters: {"model_name"=>"structures"}
78179
+ Completed 401 Unauthorized in 0ms
78180
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:31 +0200
78181
+ Processing by Devise::SessionsController#new as HTML
78182
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
78183
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
78184
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78185
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78186
+  (166.7ms) TRUNCATE TABLE `assets`;
78187
+  (330.8ms) TRUNCATE TABLE `audits`;
78188
+  (317.4ms) TRUNCATE TABLE `meta_tags`;
78189
+  (173.2ms) TRUNCATE TABLE `page_parts`;
78190
+  (226.2ms) TRUNCATE TABLE `posts`;
78191
+  (138.9ms) TRUNCATE TABLE `settings`;
78192
+  (284.0ms) TRUNCATE TABLE `structures`;
78193
+  (398.8ms) TRUNCATE TABLE `users`;
78194
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78195
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
78196
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78197
+  (308.3ms) TRUNCATE TABLE `assets`;
78198
+  (319.9ms) TRUNCATE TABLE `audits`;
78199
+  (312.9ms) TRUNCATE TABLE `meta_tags`;
78200
+  (155.9ms) TRUNCATE TABLE `page_parts`;
78201
+  (293.2ms) TRUNCATE TABLE `posts`;
78202
+  (128.0ms) TRUNCATE TABLE `settings`;
78203
+  (319.4ms) TRUNCATE TABLE `structures`;
78204
+  (442.9ms) TRUNCATE TABLE `users`;
78205
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78206
+  (0.1ms) BEGIN
78207
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
78208
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:35', '2013-02-04 15:49:35', NULL, NULL, 'testing9@example.com', 'ff87c3ea2a4f49190f9528c296d962791dd6d10e4849f778f09ab3f970d49f5c73eb95329050c0d5248479e29f60c8b536272a50161f87c58705127e52ae9fe8', 0, NULL, NULL, NULL, 'Admin', 'U3cbVDpikqDJHyuxqm1B', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:35')
78209
+  (36.5ms) COMMIT
78210
+  (0.1ms) BEGIN
78211
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78212
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:35', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:35')
78213
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78214
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78215
+  (36.5ms) COMMIT
78216
+  (0.1ms) BEGIN
78217
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78218
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:35', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug7', 'Structure', '2013-02-04 15:49:35')
78219
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
78220
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78221
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
78222
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
78223
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78224
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78225
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78226
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78227
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
78228
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78229
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78230
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78231
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78232
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78233
+  (37.7ms) COMMIT
78234
+ Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2013-02-04 17:49:35 +0200
78235
+  (0.1ms) BEGIN
78236
+  (0.1ms) COMMIT
78237
+  (0.1ms) BEGIN
78238
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:35', `current_sign_in_at` = '2013-02-04 15:49:35', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:35' WHERE `users`.`id` = 1
78239
+  (34.1ms) COMMIT
78240
+ Processing by Sunrise::ManagerController#edit as HTML
78241
+ Parameters: {"model_name"=>"whatever", "id"=>"2"}
78242
+ Completed 404 Not Found in 10ms
78243
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:35 +0200
78244
+  (0.1ms) BEGIN
78245
+  (0.1ms) COMMIT
78246
+  (0.1ms) BEGIN
78247
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:35' WHERE `users`.`id` = 1
78248
+  (43.9ms) COMMIT
78249
+ Processing by Sunrise::ManagerController#edit as HTML
78250
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
78251
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78252
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78253
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
78254
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
78255
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.2ms)
78256
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
78257
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.3ms)
78258
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (30.4ms)
78259
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
78260
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
78261
+ Completed 200 OK in 43ms (Views: 37.0ms | ActiveRecord: 2.1ms)
78262
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
78263
+  (0.1ms) BEGIN
78264
+  (0.1ms) COMMIT
78265
+  (0.1ms) BEGIN
78266
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:49:36', `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:36' WHERE `users`.`id` = 1
78267
+  (60.9ms) COMMIT
78268
+ Processing by Sunrise::ManagerController#edit as HTML
78269
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
78270
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78271
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78272
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
78273
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
78274
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.2ms)
78275
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
78276
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.8ms)
78277
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.7ms)
78278
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
78279
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
78280
+ Completed 200 OK in 40ms (Views: 36.3ms | ActiveRecord: 0.8ms)
78281
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
78282
+  (0.1ms) BEGIN
78283
+  (0.1ms) COMMIT
78284
+  (0.1ms) BEGIN
78285
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:36', `sign_in_count` = 4, `updated_at` = '2013-02-04 15:49:36' WHERE `users`.`id` = 1
78286
+  (22.8ms) COMMIT
78287
+ Processing by Sunrise::ManagerController#edit as HTML
78288
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
78289
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78290
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78291
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
78292
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.1ms)
78293
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.5ms)
78294
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
78295
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
78296
+ Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 0.7ms)
78297
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
78298
+  (0.1ms) BEGIN
78299
+  (0.1ms) COMMIT
78300
+  (0.1ms) BEGIN
78301
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 5, `updated_at` = '2013-02-04 15:49:36' WHERE `users`.`id` = 1
78302
+  (39.6ms) COMMIT
78303
+ Processing by Sunrise::ManagerController#edit as HTML
78304
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
78305
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78306
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78307
+ PagePart Load (0.2ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
78308
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.5ms)
78309
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.7ms)
78310
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
78311
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
78312
+ Completed 200 OK in 22ms (Views: 18.5ms | ActiveRecord: 0.4ms)
78313
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
78314
+ Processing by Sunrise::ManagerController#edit as HTML
78315
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
78316
+ Completed 401 Unauthorized in 0ms
78317
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
78318
+ Processing by Devise::SessionsController#new as HTML
78319
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
78320
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
78321
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78322
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78323
+  (179.3ms) TRUNCATE TABLE `assets`;
78324
+  (308.6ms) TRUNCATE TABLE `audits`;
78325
+  (295.0ms) TRUNCATE TABLE `meta_tags`;
78326
+  (173.3ms) TRUNCATE TABLE `page_parts`;
78327
+  (237.5ms) TRUNCATE TABLE `posts`;
78328
+  (138.8ms) TRUNCATE TABLE `settings`;
78329
+  (284.0ms) TRUNCATE TABLE `structures`;
78330
+  (353.9ms) TRUNCATE TABLE `users`;
78331
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78332
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
78333
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78334
+  (305.6ms) TRUNCATE TABLE `assets`;
78335
+  (315.7ms) TRUNCATE TABLE `audits`;
78336
+  (177.6ms) TRUNCATE TABLE `meta_tags`;
78337
+  (251.1ms) TRUNCATE TABLE `page_parts`;
78338
+  (161.2ms) TRUNCATE TABLE `posts`;
78339
+  (215.1ms) TRUNCATE TABLE `settings`;
78340
+  (306.8ms) TRUNCATE TABLE `structures`;
78341
+  (352.6ms) TRUNCATE TABLE `users`;
78342
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78343
+  (0.1ms) BEGIN
78344
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1
78345
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:40', '2013-02-04 15:49:40', NULL, NULL, 'testing10@example.com', 'e9c075c8331af020b2132762c8ef08d5e7538a1e7d009431c2db56ce564523f23f19b7a8f1ca37c144925235039b780e559894f5f3cc19c1868f739c094e1adf', 0, NULL, NULL, NULL, 'Admin', 'hqJHTEGYGeeW2XjUUKSz', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:40')
78346
+  (27.1ms) COMMIT
78347
+  (0.1ms) BEGIN
78348
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78349
+ SQL (0.7ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:40', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:40')
78350
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78351
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78352
+  (36.0ms) COMMIT
78353
+  (0.1ms) BEGIN
78354
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78355
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:40', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug8', 'Structure', '2013-02-04 15:49:40')
78356
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
78357
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78358
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
78359
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
78360
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78361
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78362
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78363
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78364
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
78365
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78366
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78367
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78368
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78369
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78370
+  (52.3ms) COMMIT
78371
+  (0.1ms) BEGIN
78372
+ SQL (40.1ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:40', 1, 2, 'Default title', '2013-02-04 15:49:40')
78373
+  (45.1ms) COMMIT
78374
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
78375
+  (0.1ms) BEGIN
78376
+  (0.1ms) COMMIT
78377
+  (0.1ms) BEGIN
78378
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:40', `current_sign_in_at` = '2013-02-04 15:49:40', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:40' WHERE `users`.`id` = 1
78379
+  (35.9ms) COMMIT
78380
+ Processing by Sunrise::ManagerController#index as HTML
78381
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78382
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78383
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78384
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.4ms)
78385
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78386
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78387
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78388
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78389
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
78390
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (16.6ms)
78391
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
78392
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
78393
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78394
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78395
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
78396
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (21.7ms)
78397
+ Completed 200 OK in 61ms (Views: 51.0ms | ActiveRecord: 1.5ms)
78398
+ Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
78399
+ Processing by Sunrise::ManagerController#destroy as HTML
78400
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
78401
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78402
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
78403
+  (0.1ms) BEGIN
78404
+ SQL (0.4ms) DELETE FROM `posts` WHERE `posts`.`id` = 1
78405
+  (18.4ms) COMMIT
78406
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78407
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
78408
+ Completed 302 Found in 31ms (ActiveRecord: 0.0ms)
78409
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
78410
+ Processing by Sunrise::ManagerController#index as HTML
78411
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78412
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78413
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78414
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78415
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
78416
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78417
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78418
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78419
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78420
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.4ms)
78421
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.3ms)
78422
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
78423
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
78424
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78425
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78426
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
78427
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.3ms)
78428
+ Completed 200 OK in 35ms (Views: 27.2ms | ActiveRecord: 1.2ms)
78429
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
78430
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
78431
+ Processing by Sunrise::ManagerController#index as HTML
78432
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78433
+ Completed 401 Unauthorized in 0ms
78434
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
78435
+ Processing by Devise::SessionsController#new as HTML
78436
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
78437
+ Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)
78438
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78439
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78440
+  (159.5ms) TRUNCATE TABLE `assets`;
78441
+  (1201.3ms) TRUNCATE TABLE `audits`;
78442
+  (304.8ms) TRUNCATE TABLE `meta_tags`;
78443
+  (283.6ms) TRUNCATE TABLE `page_parts`;
78444
+  (116.8ms) TRUNCATE TABLE `posts`;
78445
+  (205.2ms) TRUNCATE TABLE `settings`;
78446
+  (296.2ms) TRUNCATE TABLE `structures`;
78447
+  (501.7ms) TRUNCATE TABLE `users`;
78448
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
78449
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78450
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78451
+  (192.3ms) TRUNCATE TABLE `assets`;
78452
+  (296.9ms) TRUNCATE TABLE `audits`;
78453
+  (295.2ms) TRUNCATE TABLE `meta_tags`;
78454
+  (496.3ms) TRUNCATE TABLE `page_parts`;
78455
+  (139.3ms) TRUNCATE TABLE `posts`;
78456
+  (260.2ms) TRUNCATE TABLE `settings`;
78457
+  (185.5ms) TRUNCATE TABLE `structures`;
78458
+  (363.5ms) TRUNCATE TABLE `users`;
78459
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78460
+  (0.1ms) BEGIN
78461
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
78462
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:46', '2013-02-04 15:49:46', NULL, NULL, 'testing11@example.com', '59982bfc5e8fa99ccf8713785a9fde492f8e0b1d6ddbcbde1cbfb444d3aa291bb0fd5fed40659304738b8b770a5df790ca8886281cc67d69fa91333736582bae', 0, NULL, NULL, NULL, 'Admin', '6EMsqrv2zy3spmiyoobL', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:46')
78463
+  (47.7ms) COMMIT
78464
+  (0.1ms) BEGIN
78465
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78466
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:46', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:46')
78467
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78468
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78469
+  (36.3ms) COMMIT
78470
+  (0.1ms) BEGIN
78471
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78472
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:46', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug9', 'Structure', '2013-02-04 15:49:46')
78473
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
78474
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78475
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
78476
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
78477
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78478
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78479
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78480
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78481
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
78482
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78483
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78484
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78485
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78486
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78487
+  (51.3ms) COMMIT
78488
+  (0.1ms) BEGIN
78489
+ SQL (34.9ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:46', 1, 2, 'Default title', '2013-02-04 15:49:46')
78490
+  (49.2ms) COMMIT
78491
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
78492
+  (0.1ms) BEGIN
78493
+  (0.1ms) COMMIT
78494
+  (0.1ms) BEGIN
78495
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:46', `current_sign_in_at` = '2013-02-04 15:49:46', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:46' WHERE `users`.`id` = 1
78496
+  (35.9ms) COMMIT
78497
+ Processing by Sunrise::ManagerController#edit as HTML
78498
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
78499
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
78500
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
78501
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.2ms)
78502
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.5ms)
78503
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
78504
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
78505
+ Completed 200 OK in 24ms (Views: 17.4ms | ActiveRecord: 0.5ms)
78506
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
78507
+ Processing by Sunrise::ManagerController#update as HTML
78508
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Title updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
78509
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78510
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
78511
+  (0.1ms) BEGIN
78512
+  (31.8ms) UPDATE `posts` SET `title` = 'Title updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2013-02-04 15:49:46' WHERE `posts`.`id` = 1
78513
+  (37.3ms) COMMIT
78514
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78515
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
78516
+ Completed 302 Found in 82ms (ActiveRecord: 0.0ms)
78517
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
78518
+ Processing by Sunrise::ManagerController#index as HTML
78519
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78520
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78521
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78522
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78523
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.6ms)
78524
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78525
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
78526
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78527
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78528
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.3ms)
78529
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.0ms)
78530
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
78531
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
78532
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78533
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78534
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.3ms)
78535
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.0ms)
78536
+ Completed 200 OK in 40ms (Views: 32.4ms | ActiveRecord: 1.3ms)
78537
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
78538
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78539
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
78540
+  (0.1ms) BEGIN
78541
+  (0.1ms) COMMIT
78542
+  (0.1ms) BEGIN
78543
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:46' WHERE `users`.`id` = 1
78544
+  (24.1ms) COMMIT
78545
+ Processing by Sunrise::ManagerController#edit as HTML
78546
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
78547
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
78548
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78549
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
78550
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.4ms)
78551
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
78552
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
78553
+ Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 0.2ms)
78554
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
78555
+ Processing by Sunrise::ManagerController#update as HTML
78556
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Title updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
78557
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78558
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
78559
+  (0.1ms) BEGIN
78560
+  (0.1ms) COMMIT
78561
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78562
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
78563
+ Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
78564
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
78565
+ Processing by Sunrise::ManagerController#index as HTML
78566
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78567
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78568
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78569
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78570
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
78571
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78572
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78573
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78574
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78575
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
78576
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.4ms)
78577
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
78578
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
78579
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78580
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78581
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
78582
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.6ms)
78583
+ Completed 200 OK in 39ms (Views: 32.5ms | ActiveRecord: 0.7ms)
78584
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
78585
+ Processing by Sunrise::ManagerController#edit as HTML
78586
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
78587
+ Completed 401 Unauthorized in 0ms
78588
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:47 +0200
78589
+ Processing by Devise::SessionsController#new as HTML
78590
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
78591
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
78592
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78593
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78594
+  (167.5ms) TRUNCATE TABLE `assets`;
78595
+  (286.6ms) TRUNCATE TABLE `audits`;
78596
+  (294.7ms) TRUNCATE TABLE `meta_tags`;
78597
+  (162.2ms) TRUNCATE TABLE `page_parts`;
78598
+  (204.4ms) TRUNCATE TABLE `posts`;
78599
+  (138.9ms) TRUNCATE TABLE `settings`;
78600
+  (295.4ms) TRUNCATE TABLE `structures`;
78601
+  (376.3ms) TRUNCATE TABLE `users`;
78602
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78603
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
78604
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78605
+  (283.9ms) TRUNCATE TABLE `assets`;
78606
+  (377.8ms) TRUNCATE TABLE `audits`;
78607
+  (273.7ms) TRUNCATE TABLE `meta_tags`;
78608
+  (140.2ms) TRUNCATE TABLE `page_parts`;
78609
+  (239.3ms) TRUNCATE TABLE `posts`;
78610
+  (139.0ms) TRUNCATE TABLE `settings`;
78611
+  (343.1ms) TRUNCATE TABLE `structures`;
78612
+  (374.8ms) TRUNCATE TABLE `users`;
78613
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78614
+  (0.1ms) BEGIN
78615
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
78616
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:51', '2013-02-04 15:49:51', NULL, NULL, 'testing12@example.com', '4f4040a7e00d9e4116fbf3f48ed11cf7dec792ce57d41b7b0fe9084dfcdaf829cd082701b177581bfe5679966b341c2a859bf2b9e8805ae3f38c9dce766d1931', 0, NULL, NULL, NULL, 'Admin', 'rpnyWyosZDmCwUcGnFzt', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:51')
78617
+  (55.7ms) COMMIT
78618
+  (0.1ms) BEGIN
78619
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78620
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:51', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:51')
78621
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78622
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78623
+  (36.4ms) COMMIT
78624
+  (0.1ms) BEGIN
78625
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78626
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:51', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug10', 'Structure', '2013-02-04 15:49:51')
78627
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
78628
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78629
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
78630
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
78631
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78632
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78633
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78634
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78635
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
78636
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78637
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78638
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78639
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78640
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78641
+  (48.1ms) COMMIT
78642
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:51 +0200
78643
+  (0.1ms) BEGIN
78644
+  (0.1ms) COMMIT
78645
+  (0.1ms) BEGIN
78646
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:51', `current_sign_in_at` = '2013-02-04 15:49:51', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:51' WHERE `users`.`id` = 1
78647
+  (24.7ms) COMMIT
78648
+ Processing by Sunrise::ManagerController#new as HTML
78649
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78650
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78651
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78652
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
78653
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.2ms)
78654
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
78655
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
78656
+ Completed 200 OK in 25ms (Views: 17.4ms | ActiveRecord: 0.5ms)
78657
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:51 +0200
78658
+  (0.1ms) BEGIN
78659
+  (0.1ms) COMMIT
78660
+  (0.1ms) BEGIN
78661
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:51' WHERE `users`.`id` = 1
78662
+  (48.7ms) COMMIT
78663
+ Processing by Sunrise::ManagerController#new as HTML
78664
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78665
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78666
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78667
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
78668
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.1ms)
78669
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78670
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
78671
+ Completed 200 OK in 21ms (Views: 17.2ms | ActiveRecord: 0.2ms)
78672
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:51 +0200
78673
+  (0.1ms) BEGIN
78674
+  (0.1ms) COMMIT
78675
+  (0.1ms) BEGIN
78676
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:51' WHERE `users`.`id` = 1
78677
+  (30.4ms) COMMIT
78678
+ Processing by Sunrise::ManagerController#new as HTML
78679
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78680
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78681
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78682
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.0ms)
78683
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (8.9ms)
78684
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
78685
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
78686
+ Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 0.2ms)
78687
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78688
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78689
+  (212.2ms) TRUNCATE TABLE `assets`;
78690
+  (306.8ms) TRUNCATE TABLE `audits`;
78691
+  (305.9ms) TRUNCATE TABLE `meta_tags`;
78692
+  (286.0ms) TRUNCATE TABLE `page_parts`;
78693
+  (139.1ms) TRUNCATE TABLE `posts`;
78694
+  (260.3ms) TRUNCATE TABLE `settings`;
78695
+  (207.7ms) TRUNCATE TABLE `structures`;
78696
+  (388.1ms) TRUNCATE TABLE `users`;
78697
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78698
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
78699
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78700
+  (315.9ms) TRUNCATE TABLE `assets`;
78701
+  (319.1ms) TRUNCATE TABLE `audits`;
78702
+  (319.1ms) TRUNCATE TABLE `meta_tags`;
78703
+  (196.5ms) TRUNCATE TABLE `page_parts`;
78704
+  (237.4ms) TRUNCATE TABLE `posts`;
78705
+  (183.6ms) TRUNCATE TABLE `settings`;
78706
+  (352.9ms) TRUNCATE TABLE `structures`;
78707
+  (1530.7ms) TRUNCATE TABLE `users`;
78708
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78709
+  (0.1ms) BEGIN
78710
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
78711
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:57', '2013-02-04 15:49:57', NULL, NULL, 'testing13@example.com', '39f27be8529454255da02f36119a68e7eed5cb30ef4f94e2be125f3f81e8ccf0727ff251cabe6639d26c5309ef75adbb846035e5249e5a5dba03c5f5330c42ac', 0, NULL, NULL, NULL, 'Admin', 'fFyzCorRAsXVMYvs9Sun', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:57')
78712
+  (70.6ms) COMMIT
78713
+  (0.1ms) BEGIN
78714
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78715
+ SQL (171.8ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:57', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:57')
78716
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78717
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78718
+  (58.0ms) COMMIT
78719
+  (0.1ms) BEGIN
78720
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78721
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:57', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug11', 'Structure', '2013-02-04 15:49:57')
78722
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
78723
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78724
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
78725
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
78726
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78727
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78728
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78729
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78730
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
78731
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78732
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78733
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78734
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78735
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78736
+  (46.9ms) COMMIT
78737
+  (0.1ms) BEGIN
78738
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:57', 1, 2, 'Default title', '2013-02-04 15:49:57')
78739
+  (49.8ms) COMMIT
78740
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
78741
+  (0.1ms) BEGIN
78742
+  (0.1ms) COMMIT
78743
+  (0.1ms) BEGIN
78744
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:57', `current_sign_in_at` = '2013-02-04 15:49:57', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:57' WHERE `users`.`id` = 1
78745
+  (46.9ms) COMMIT
78746
+ Processing by Sunrise::ManagerController#index as HTML
78747
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78748
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78749
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78750
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.6ms)
78751
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78752
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78753
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78754
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78755
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.3ms)
78756
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.1ms)
78757
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
78758
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
78759
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78760
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78761
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
78762
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.1ms)
78763
+ Completed 200 OK in 39ms (Views: 32.0ms | ActiveRecord: 1.5ms)
78764
+  (0.1ms) BEGIN
78765
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:57', 1, 2, 'Good day', '2013-02-04 15:49:57')
78766
+  (58.0ms) COMMIT
78767
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
78768
+  (0.1ms) BEGIN
78769
+  (0.1ms) COMMIT
78770
+  (0.1ms) BEGIN
78771
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:57' WHERE `users`.`id` = 1
78772
+  (36.8ms) COMMIT
78773
+ Processing by Sunrise::ManagerController#index as HTML
78774
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78775
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78776
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78777
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.2ms)
78778
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78779
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78780
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78781
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78782
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.3ms)
78783
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.1ms)
78784
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
78785
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
78786
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78787
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78788
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
78789
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.1ms)
78790
+ Completed 200 OK in 42ms (Views: 35.9ms | ActiveRecord: 1.2ms)
78791
+ Started GET "/manage/posts?utf8=%E2%9C%93&parent_id=2&parent_type=Structure&search[title]=Good+day&search[structure_id]=&commit=Search" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
78792
+ Processing by Sunrise::ManagerController#index as HTML
78793
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Good day", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
78794
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78795
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78796
+ Post Load (0.7ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78797
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
78798
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2
78799
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
78800
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78801
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78802
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
78803
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.0ms)
78804
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
78805
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
78806
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78807
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78808
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
78809
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.1ms)
78810
+ Completed 200 OK in 42ms (Views: 33.3ms | ActiveRecord: 1.9ms)
78811
+ Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
78812
+  (0.1ms) BEGIN
78813
+  (0.1ms) COMMIT
78814
+  (0.1ms) BEGIN
78815
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:57' WHERE `users`.`id` = 1
78816
+  (21.9ms) COMMIT
78817
+ Processing by Sunrise::ManagerController#index as HTML
78818
+ Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
78819
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78820
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
78821
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
78822
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1
78823
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78824
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78825
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (90.2ms)
78826
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (108.4ms)
78827
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (113.3ms)
78828
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.8ms)
78829
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
78830
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
78831
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.0ms)
78832
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.0ms)
78833
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (119.1ms)
78834
+ Completed 200 OK in 138ms (Views: 131.2ms | ActiveRecord: 1.4ms)
78835
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78836
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78837
+  (314.3ms) TRUNCATE TABLE `assets`;
78838
+  (426.7ms) TRUNCATE TABLE `audits`;
78839
+  (176.0ms) TRUNCATE TABLE `meta_tags`;
78840
+  (437.8ms) TRUNCATE TABLE `page_parts`;
78841
+  (250.8ms) TRUNCATE TABLE `posts`;
78842
+  (127.0ms) TRUNCATE TABLE `settings`;
78843
+  (285.6ms) TRUNCATE TABLE `structures`;
78844
+  (453.2ms) TRUNCATE TABLE `users`;
78845
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78846
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78847
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78848
+  (291.5ms) TRUNCATE TABLE `assets`;
78849
+  (223.5ms) TRUNCATE TABLE `audits`;
78850
+  (261.2ms) TRUNCATE TABLE `meta_tags`;
78851
+  (261.6ms) TRUNCATE TABLE `page_parts`;
78852
+  (139.0ms) TRUNCATE TABLE `posts`;
78853
+  (271.7ms) TRUNCATE TABLE `settings`;
78854
+  (185.4ms) TRUNCATE TABLE `structures`;
78855
+  (430.3ms) TRUNCATE TABLE `users`;
78856
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78857
+  (0.1ms) BEGIN
78858
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
78859
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:50:02', '2013-02-04 15:50:02', NULL, NULL, 'testing14@example.com', '4ae4231a989c0e06b9cd21cdfcac4677c40cd376d6c13a36085f8ecff426f6cfd0ad8724eb93f0178bc3cc9fea7443afa3c7a70e8fc74b3779498617b18c3cd7', 0, NULL, NULL, NULL, 'Admin', '8KpVvEMCFypqPAZhXbDf', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:50:02')
78860
+  (35.9ms) COMMIT
78861
+  (0.1ms) BEGIN
78862
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78863
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:50:02', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:50:02')
78864
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
78865
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
78866
+  (47.9ms) COMMIT
78867
+  (0.1ms) BEGIN
78868
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
78869
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:50:02', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug12', 'Structure', '2013-02-04 15:50:02')
78870
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
78871
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78872
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
78873
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
78874
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78875
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78876
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78877
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78878
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
78879
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
78880
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78881
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78882
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
78883
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
78884
+  (47.5ms) COMMIT
78885
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
78886
+  (0.1ms) BEGIN
78887
+  (0.1ms) COMMIT
78888
+  (0.1ms) BEGIN
78889
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:50:02', `current_sign_in_at` = '2013-02-04 15:50:02', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:50:02' WHERE `users`.`id` = 1
78890
+  (35.7ms) COMMIT
78891
+ Processing by Sunrise::ManagerController#new as HTML
78892
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78893
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78894
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78895
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
78896
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.3ms)
78897
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
78898
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
78899
+ Completed 200 OK in 22ms (Views: 17.3ms | ActiveRecord: 0.5ms)
78900
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
78901
+ Processing by Sunrise::ManagerController#create as HTML
78902
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Good title", "content"=>"Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text", "is_visible"=>"1"}, "commit"=>"Create Post", "model_name"=>"posts"}
78903
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78904
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78905
+  (0.1ms) BEGIN
78906
+ SQL (0.5ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2013-02-04 15:50:02', 1, 2, 'Good title', '2013-02-04 15:50:02')
78907
+  (39.3ms) COMMIT
78908
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
78909
+ Completed 302 Found in 50ms (ActiveRecord: 0.0ms)
78910
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
78911
+ Processing by Sunrise::ManagerController#index as HTML
78912
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78913
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78914
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78915
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78916
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
78917
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78918
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
78919
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78920
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78921
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.8ms)
78922
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.8ms)
78923
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
78924
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
78925
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78926
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78927
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.6ms)
78928
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.1ms)
78929
+ Completed 200 OK in 41ms (Views: 33.3ms | ActiveRecord: 1.4ms)
78930
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
78931
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78932
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
78933
+  (0.1ms) BEGIN
78934
+  (0.1ms) COMMIT
78935
+  (0.1ms) BEGIN
78936
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:50:02' WHERE `users`.`id` = 1
78937
+  (14.6ms) COMMIT
78938
+ Processing by Sunrise::ManagerController#new as HTML
78939
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78940
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78941
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
78942
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.2ms)
78943
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.2ms)
78944
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
78945
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
78946
+ Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 0.2ms)
78947
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
78948
+ Processing by Sunrise::ManagerController#create as HTML
78949
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Good title", "content"=>"Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text", "is_visible"=>"1"}, "commit"=>"Create Post", "model_name"=>"posts"}
78950
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78951
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78952
+  (0.1ms) BEGIN
78953
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2013-02-04 15:50:02', 1, 2, 'Good title', '2013-02-04 15:50:02')
78954
+  (20.8ms) COMMIT
78955
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
78956
+ Completed 302 Found in 32ms (ActiveRecord: 0.0ms)
78957
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:03 +0200
78958
+ Processing by Sunrise::ManagerController#index as HTML
78959
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
78960
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
78961
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
78962
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
78963
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.1ms)
78964
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
78965
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
78966
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78967
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
78968
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.4ms)
78969
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.1ms)
78970
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
78971
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
78972
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
78973
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
78974
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
78975
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.1ms)
78976
+ Completed 200 OK in 43ms (Views: 35.6ms | ActiveRecord: 1.4ms)
78977
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
78978
+ Started GET "/manage/posts/new" for 127.0.0.1 at 2013-02-04 17:50:03 +0200
78979
+ Processing by Sunrise::ManagerController#new as HTML
78980
+ Parameters: {"model_name"=>"posts"}
78981
+ Completed 401 Unauthorized in 1ms
78982
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:50:03 +0200
78983
+ Processing by Devise::SessionsController#new as HTML
78984
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
78985
+ Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)
78986
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
78987
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78988
+  (165.4ms) TRUNCATE TABLE `assets`;
78989
+  (334.8ms) TRUNCATE TABLE `audits`;
78990
+  (301.8ms) TRUNCATE TABLE `meta_tags`;
78991
+  (173.3ms) TRUNCATE TABLE `page_parts`;
78992
+  (215.4ms) TRUNCATE TABLE `posts`;
78993
+  (138.9ms) TRUNCATE TABLE `settings`;
78994
+  (330.6ms) TRUNCATE TABLE `structures`;
78995
+  (365.4ms) TRUNCATE TABLE `users`;
78996
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
78997
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
78998
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
78999
+  (350.6ms) TRUNCATE TABLE `assets`;
79000
+  (310.8ms) TRUNCATE TABLE `audits`;
79001
+  (295.1ms) TRUNCATE TABLE `meta_tags`;
79002
+  (140.0ms) TRUNCATE TABLE `page_parts`;
79003
+  (249.6ms) TRUNCATE TABLE `posts`;
79004
+  (205.9ms) TRUNCATE TABLE `settings`;
79005
+  (342.6ms) TRUNCATE TABLE `structures`;
79006
+  (352.8ms) TRUNCATE TABLE `users`;
79007
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79008
+  (0.1ms) BEGIN
79009
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
79010
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:50:07', '2013-02-04 15:50:07', NULL, NULL, 'testing15@example.com', '3cbce3bb034377c06ddfa034348be19c314f2c2fd7a23015bc55c4ebfdd50518bbf23c3e1b35a290af531bd1a693338336a4b470e1753b3cf2d18ca5141de936', 0, NULL, NULL, NULL, 'Admin', 'EkxtpEYm14otMi4P51YV', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:50:07')
79011
+  (47.4ms) COMMIT
79012
+  (0.1ms) BEGIN
79013
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79014
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:50:07', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:50:07')
79015
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79016
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
79017
+  (47.9ms) COMMIT
79018
+  (0.1ms) BEGIN
79019
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79020
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:50:07', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug13', 'Structure', '2013-02-04 15:50:07')
79021
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79022
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79023
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
79024
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79025
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79026
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79027
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79028
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79029
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
79030
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79031
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79032
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79033
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79034
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79035
+  (75.0ms) COMMIT
79036
+  (0.1ms) BEGIN
79037
+ SQL (32.1ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:50:07', 1, 2, 'Default title', '2013-02-04 15:50:07')
79038
+  (177.6ms) COMMIT
79039
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:07 +0200
79040
+  (0.1ms) BEGIN
79041
+  (0.1ms) COMMIT
79042
+  (0.1ms) BEGIN
79043
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:50:07', `current_sign_in_at` = '2013-02-04 15:50:07', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:50:07' WHERE `users`.`id` = 1
79044
+  (79.6ms) COMMIT
79045
+ Processing by Sunrise::ManagerController#edit as HTML
79046
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
79047
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
79048
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
79049
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.6ms)
79050
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.7ms)
79051
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
79052
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
79053
+ Completed 200 OK in 23ms (Views: 17.7ms | ActiveRecord: 0.6ms)
79054
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:07 +0200
79055
+  (0.1ms) BEGIN
79056
+  (0.1ms) COMMIT
79057
+  (0.1ms) BEGIN
79058
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:50:07' WHERE `users`.`id` = 1
79059
+  (453.0ms) COMMIT
79060
+ Processing by Sunrise::ManagerController#edit as HTML
79061
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
79062
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
79063
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
79064
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
79065
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.2ms)
79066
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
79067
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
79068
+ Completed 200 OK in 22ms (Views: 17.3ms | ActiveRecord: 0.2ms)
79069
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:08 +0200
79070
+ Processing by Sunrise::ManagerController#edit as HTML
79071
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
79072
+ Completed 401 Unauthorized in 0ms
79073
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:50:08 +0200
79074
+ Processing by Devise::SessionsController#new as HTML
79075
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.1ms)
79076
+ Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)
79077
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79078
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79079
+  (750.7ms) TRUNCATE TABLE `assets`;
79080
+  (496.7ms) TRUNCATE TABLE `audits`;
79081
+  (306.1ms) TRUNCATE TABLE `meta_tags`;
79082
+  (162.4ms) TRUNCATE TABLE `page_parts`;
79083
+  (283.8ms) TRUNCATE TABLE `posts`;
79084
+  (139.0ms) TRUNCATE TABLE `settings`;
79085
+  (352.9ms) TRUNCATE TABLE `structures`;
79086
+  (454.4ms) TRUNCATE TABLE `users`;
79087
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79088
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79089
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79090
+  (328.6ms) TRUNCATE TABLE `assets`;
79091
+  (364.7ms) TRUNCATE TABLE `audits`;
79092
+  (329.1ms) TRUNCATE TABLE `meta_tags`;
79093
+  (446.6ms) TRUNCATE TABLE `page_parts`;
79094
+  (283.6ms) TRUNCATE TABLE `posts`;
79095
+  (117.0ms) TRUNCATE TABLE `settings`;
79096
+  (351.2ms) TRUNCATE TABLE `structures`;
79097
+  (453.4ms) TRUNCATE TABLE `users`;
79098
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79099
+  (0.1ms) BEGIN
79100
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
79101
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:50:14', '2013-02-04 15:50:14', NULL, NULL, 'testing16@example.com', 'baab15cc00503921cc124e99f4527dbde21b2123e78c35cc4a5e589f068f2e41f4f62acc5854df96bea18038a5bc2dc1dbf2708e4569c6ea79b0fefbe98bf7b0', 0, NULL, NULL, NULL, 'Admin', 'sDXL8PLsazxCgGzWZ9Nx', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:50:14')
79102
+  (36.7ms) COMMIT
79103
+  (0.1ms) BEGIN
79104
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79105
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:50:14', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:50:14')
79106
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79107
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
79108
+  (36.9ms) COMMIT
79109
+  (0.1ms) BEGIN
79110
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79111
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:50:14', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug14', 'Structure', '2013-02-04 15:50:14')
79112
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79113
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79114
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
79115
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79116
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79117
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79118
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79119
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79120
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
79121
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79122
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79123
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79124
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79125
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79126
+  (52.4ms) COMMIT
79127
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-02-04 17:50:14 +0200
79128
+  (0.1ms) BEGIN
79129
+  (0.1ms) COMMIT
79130
+  (0.1ms) BEGIN
79131
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:50:14', `current_sign_in_at` = '2013-02-04 15:50:14', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:50:14' WHERE `users`.`id` = 1
79132
+  (36.1ms) COMMIT
79133
+ Processing by Sunrise::SharedController#services as JSON
79134
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1
79135
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
79136
+ Completed 200 OK in 176ms (Views: 163.2ms | ActiveRecord: 1.2ms)
79137
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-02-04 17:50:14 +0200
79138
+ Processing by Sunrise::SharedController#services as JSON
79139
+ Completed 401 Unauthorized in 0ms
79140
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79141
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79142
+  (166.1ms) TRUNCATE TABLE `assets`;
79143
+  (353.3ms) TRUNCATE TABLE `audits`;
79144
+  (272.3ms) TRUNCATE TABLE `meta_tags`;
79145
+  (173.3ms) TRUNCATE TABLE `page_parts`;
79146
+  (204.3ms) TRUNCATE TABLE `posts`;
79147
+  (150.2ms) TRUNCATE TABLE `settings`;
79148
+  (309.3ms) TRUNCATE TABLE `structures`;
79149
+  (386.5ms) TRUNCATE TABLE `users`;
79150
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1