Creating scope :public. Overwriting existing method SpudPage.public.  (1.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.3ms) SELECT DATABASE() as db  (8.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (3.8ms) TRUNCATE TABLE `spud_admin_permissions`;  (3.7ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (1.2ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (2.2ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (2.1ms) TRUNCATE TABLE `spud_permalinks`;  (0.5ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (0.6ms) TRUNCATE TABLE `spud_users`;  (0.0ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (9.3ms) Completed 200 OK in 31ms (Views: 20.4ms | ActiveRecord: 2.1ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (1.0ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.9ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 11:55:51', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 11:55:51', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 11:55:51', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 11:55:51', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 11:55:51', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 11:55:51', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 11:55:51', NULL, NULL, 3, '2012-08-31 11:55:51')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 11:55:52', 'test', 'Body', NULL, '2012-08-31 11:55:52') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 11:55:52', 'Template3', 'Body', NULL, '2012-08-31 11:55:52') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 11:55:52', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 11:55:52', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (1.0ms) TRUNCATE TABLE `spud_menus`;  (0.9ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (1.0ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.5ms) Completed 200 OK in 21ms (Views: 12.0ms | ActiveRecord: 2.1ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.5ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:04', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:04', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:04', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:04', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:04', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:04', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:01:04', NULL, NULL, 3, '2012-08-31 12:01:04')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:04', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:04', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:01:04', 'test', 'Body', NULL, '2012-08-31 12:01:04') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:01:04', 'Template3', 'Body', NULL, '2012-08-31 12:01:04') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:04', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:01:04', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.9ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.7ms) TRUNCATE TABLE `spud_pages`;  (0.6ms) TRUNCATE TABLE `spud_permalinks`;  (1.0ms) TRUNCATE TABLE `spud_templates`;  (0.4ms) TRUNCATE TABLE `spud_user_settings`;  (0.8ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.6ms) Completed 200 OK in 20ms (Views: 11.9ms | ActiveRecord: 2.0ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:19', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:19', NULL, 'test', 1, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:19', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:19', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:19', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:19', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:01:19', NULL, NULL, 3, '2012-08-31 12:01:19')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.3ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:19', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:01:19', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:01:19', 'test', 'Body', NULL, '2012-08-31 12:01:19') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:01:19', 'Template3', 'Body', NULL, '2012-08-31 12:01:19') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:01:19', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:01:19', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.8ms) TRUNCATE TABLE `spud_menu_items`;  (0.5ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (0.8ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.4ms) Completed 200 OK in 21ms (Views: 12.0ms | ActiveRecord: 2.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:04:21', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:04:21', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:04:21', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:04:21', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:04:21', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:04:21', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:04:21', NULL, NULL, 3, '2012-08-31 12:04:21')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:04:21', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:04:21', NULL, 'about', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:04:21', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:04:21', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (27.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:04:21', 'test', 'Body', NULL, '2012-08-31 12:04:21') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:04:21', 'Template3', 'Body', NULL, '2012-08-31 12:04:21') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:04:21', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:04:21', NULL, 'page4', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.7ms) TRUNCATE TABLE `spud_menu_items`;  (0.6ms) TRUNCATE TABLE `spud_menus`;  (0.5ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (1.1ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.5ms) Completed 200 OK in 21ms (Views: 12.1ms | ActiveRecord: 2.0ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:05:51', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:05:51', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:05:51', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:05:51', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:05:51', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:05:51', NULL, 'page3', 0, 0) SQL (0.3ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:05:51', NULL, NULL, 3, '2012-08-31 12:05:51')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:05:51', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:05:51', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:05:51', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:05:51', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:05:51', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:05:51', NULL, 'another', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 6) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (6, 'SpudPage', '2012-08-31 12:05:51', NULL, '2012-08-31 12:05:51', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 6 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 6 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:05:51' WHERE `spud_pages`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.7ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:05:51', 'test', 'Body', NULL, '2012-08-31 12:05:51') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:05:51', 'Template3', 'Body', NULL, '2012-08-31 12:05:51') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:05:51', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:05:51', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.6ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.0ms) TRUNCATE TABLE `spud_page_partials`;  (1.1ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.0ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.6ms) Completed 200 OK in 25ms (Views: 12.7ms | ActiveRecord: 5.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:06:05', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:06:05', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:06:05', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:06:05', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:06:05', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:06:05', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:06:05', NULL, NULL, 3, '2012-08-31 12:06:05')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:06:05', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:06:05', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:06:05', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:06:05', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:06:05', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:06:05', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 6) SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (6, 'SpudPage', '2012-08-31 12:06:05', NULL, '2012-08-31 12:06:05', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 6 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 6 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:06:05' WHERE `spud_pages`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:06:05', 'test', 'Body', NULL, '2012-08-31 12:06:05') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:06:05', 'Template3', 'Body', NULL, '2012-08-31 12:06:05') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:06:05', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:06:05', NULL, 'page4', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.5ms) TRUNCATE TABLE `spud_menus`;  (0.7ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.7ms) TRUNCATE TABLE `spud_pages`;  (0.7ms) TRUNCATE TABLE `spud_permalinks`;  (1.0ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.3ms) Completed 200 OK in 21ms (Views: 11.7ms | ActiveRecord: 2.4ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'test', 1, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:08:35', NULL, NULL, 3, '2012-08-31 12:08:35')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:35', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:08:35', NULL, '2012-08-31 12:08:35', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:08:35' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:08:35', 'test', 'Body', NULL, '2012-08-31 12:08:35') SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:08:35', 'Template3', 'Body', NULL, '2012-08-31 12:08:35') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:35', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:08:35', NULL, 'page4', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.1ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.7ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.7ms) TRUNCATE TABLE `spud_pages`;  (0.7ms) TRUNCATE TABLE `spud_permalinks`;  (0.5ms) TRUNCATE TABLE `spud_templates`;  (0.6ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (5.0ms) Completed 200 OK in 23ms (Views: 14.0ms | ActiveRecord: 2.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:08:54', NULL, NULL, 3, '2012-08-31 12:08:54')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.3ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:08:54', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:08:54', NULL, '2012-08-31 12:08:54', 'another') SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:08:54' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:08:54', 'test', 'Body', NULL, '2012-08-31 12:08:54') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:08:54', 'Template3', 'Body', NULL, '2012-08-31 12:08:54') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:08:54', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:08:54', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.2ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.9ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.6ms) TRUNCATE TABLE `spud_page_partials`;  (1.1ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.7ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.6ms) Completed 200 OK in 21ms (Views: 12.6ms | ActiveRecord: 2.2ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:09:09', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:09:09', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:09:09', NULL, 'page3', 0, 0) SQL (0.1ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:09:09', NULL, NULL, 3, '2012-08-31 12:09:09')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:09:09', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:09:09', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:09:09', NULL, 'parent/page-2', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:09:09', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:09:09', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:09:09', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:09:09', NULL, '2012-08-31 12:09:09', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:09:09' WHERE `spud_pages`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:09:09', 'test', 'Body', NULL, '2012-08-31 12:09:09') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:09:09', 'Template3', 'Body', NULL, '2012-08-31 12:09:09') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:09:09', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:09:09', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.6ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.7ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.7ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.5ms) Completed 200 OK in 21ms (Views: 12.1ms | ActiveRecord: 2.1ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'test', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:11:25', NULL, NULL, 3, '2012-08-31 12:11:25')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (2.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:11:25', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:11:25', NULL, 'parent/page-2', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:11:25', NULL, '2012-08-31 12:11:25', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:11:25' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:11:25', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:11:25', NULL, '2012-08-31 12:11:25', 'permapage') SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:11:25' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:11:25', NULL, '2012-08-31 12:11:25', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:11:25', 'test', 'Body', NULL, '2012-08-31 12:11:25') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:11:25', 'Template3', 'Body', NULL, '2012-08-31 12:11:25') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:11:25', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:11:25', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (1.1ms) TRUNCATE TABLE `spud_menus`;  (0.5ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.9ms) TRUNCATE TABLE `spud_page_partials`;  (1.1ms) TRUNCATE TABLE `spud_pages`;  (0.7ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.8ms) Completed 200 OK in 22ms (Views: 13.3ms | ActiveRecord: 2.6ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:12:08', NULL, NULL, 3, '2012-08-31 12:12:08')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:12:08', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (27.0ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:12:08', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:12:08', NULL, '2012-08-31 12:12:08', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:12:08' WHERE `spud_pages`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:08', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:12:08', NULL, '2012-08-31 12:12:08', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:12:08' WHERE `spud_pages`.`id` = 10  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:12:08', 'test', 'Body', NULL, '2012-08-31 12:12:08') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:12:08', 'Template3', 'Body', NULL, '2012-08-31 12:12:08') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:08', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:12:08', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.9ms) TRUNCATE TABLE `spud_menus`;  (0.9ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.7ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.6ms) TRUNCATE TABLE `spud_templates`;  (0.4ms) TRUNCATE TABLE `spud_user_settings`;  (0.8ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.8ms) Completed 200 OK in 23ms (Views: 13.7ms | ActiveRecord: 2.0ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:12:25', NULL, NULL, 3, '2012-08-31 12:12:25')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:12:25', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (27.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:12:25', NULL, 'parent/page-2', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:12:25', NULL, '2012-08-31 12:12:25', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:12:25' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:12:25', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:12:25', NULL, '2012-08-31 12:12:25', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:12:25' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:12:25', NULL, '2012-08-31 12:12:25', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:12:25', 'test', 'Body', NULL, '2012-08-31 12:12:25') SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:12:25', 'Template3', 'Body', NULL, '2012-08-31 12:12:25') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:12:25', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:12:25', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.1ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.6ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.7ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.7ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.5ms) TRUNCATE TABLE `spud_permalinks`;  (0.9ms) TRUNCATE TABLE `spud_templates`;  (0.5ms) TRUNCATE TABLE `spud_user_settings`;  (0.9ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.5ms) Completed 200 OK in 21ms (Views: 12.3ms | ActiveRecord: 2.1ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:13:05', NULL, NULL, 3, '2012-08-31 12:13:05')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:13:05', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:13:05', NULL, 'parent/page-2', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:13:05', NULL, '2012-08-31 12:13:05', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:13:05' WHERE `spud_pages`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:13:05', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:13:05', NULL, '2012-08-31 12:13:05', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:13:05' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:13:05', NULL, '2012-08-31 12:13:05', 'permapage-new') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage', `url_name` = 'permapage', `updated_at` = '2012-08-31 12:13:05' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:13:05', 'test', 'Body', NULL, '2012-08-31 12:13:05') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:13:05', 'Template3', 'Body', NULL, '2012-08-31 12:13:05') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:13:05', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:13:05', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.8ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (1.3ms) TRUNCATE TABLE `spud_permalinks`;  (0.5ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.9ms) Completed 200 OK in 23ms (Views: 14.0ms | ActiveRecord: 2.1ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:15:36', NULL, NULL, 3, '2012-08-31 12:15:36')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.3ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:15:36', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (27.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:15:36', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:15:36', NULL, '2012-08-31 12:15:36', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:15:36' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:36', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:36', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:15:36', NULL, '2012-08-31 12:15:36', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:15:37' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1 SQL (0.2ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:15:37', NULL, '2012-08-31 12:15:37', 'permapage-new') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'permapage', `url_name` = 'permapage', `updated_at` = '2012-08-31 12:15:37' WHERE `spud_pages`.`id` = 10  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.4ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:15:37', 'test', 'Body', NULL, '2012-08-31 12:15:37') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:15:37', 'Template3', 'Body', NULL, '2012-08-31 12:15:37') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:37', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:15:37', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.3ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.7ms) TRUNCATE TABLE `spud_menu_items`;  (0.5ms) TRUNCATE TABLE `spud_menus`;  (1.1ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.0ms) TRUNCATE TABLE `spud_page_partials`;  (1.1ms) TRUNCATE TABLE `spud_pages`;  (1.0ms) TRUNCATE TABLE `spud_permalinks`;  (0.6ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (0.8ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.4ms) Completed 200 OK in 21ms (Views: 12.3ms | ActiveRecord: 2.1ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'page3', 0, 0) SQL (0.4ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:15:56', NULL, NULL, 3, '2012-08-31 12:15:56')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:15:56', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (27.9ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:15:56', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:15:56', NULL, '2012-08-31 12:15:56', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:15:56' WHERE `spud_pages`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:15:56', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:15:56', NULL, '2012-08-31 12:15:56', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:15:56' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:15:56', NULL, '2012-08-31 12:15:56', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.4ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:15:56', 'test', 'Body', NULL, '2012-08-31 12:15:56') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:15:56', 'Template3', 'Body', NULL, '2012-08-31 12:15:56') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:15:56', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:15:56', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.3ms) TRUNCATE TABLE `spud_menu_items`;  (0.9ms) TRUNCATE TABLE `spud_menus`;  (0.9ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.1ms) TRUNCATE TABLE `spud_page_partials`;  (0.7ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (1.0ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (5.0ms) Completed 200 OK in 23ms (Views: 13.9ms | ActiveRecord: 2.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'test', 1, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'test', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:17:50', NULL, NULL, 3, '2012-08-31 12:17:50')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:17:50', NULL, 'parent/page-1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.4ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:17:50', NULL, 'parent/page-2', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:17:50', NULL, '2012-08-31 12:17:50', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:17:50' WHERE `spud_pages`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:17:50', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:17:50', NULL, '2012-08-31 12:17:50', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:17:50' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:17:50', NULL, '2012-08-31 12:17:50', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:17:50', 'test', 'Body', NULL, '2012-08-31 12:17:50') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:17:50', 'Template3', 'Body', NULL, '2012-08-31 12:17:50') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:17:50', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:17:50', NULL, 'page4', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.6ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.9ms) TRUNCATE TABLE `spud_page_partials`;  (0.6ms) TRUNCATE TABLE `spud_pages`;  (1.0ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.5ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.8ms) Completed 200 OK in 23ms (Views: 13.6ms | ActiveRecord: 2.6ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:22:00', NULL, NULL, 3, '2012-08-31 12:22:00')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:22:00', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:22:00', NULL, 'parent/page-2', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:22:00', NULL, '2012-08-31 12:22:00', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:22:00' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:22:00', NULL, '2012-08-31 12:22:00', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:22:00' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:22:00', NULL, '2012-08-31 12:22:00', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:00', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:22:00', 'test', 'Body', NULL, '2012-08-31 12:22:00') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:22:00', 'Template3', 'Body', NULL, '2012-08-31 12:22:00') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:00', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:22:00', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (3.1ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (1.0ms) TRUNCATE TABLE `spud_menus`;  (0.6ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.1ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (1.0ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.5ms) Completed 200 OK in 21ms (Views: 12.1ms | ActiveRecord: 2.0ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'test', 1, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'test', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:22:12', NULL, NULL, 3, '2012-08-31 12:22:12')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:22:12', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:22:12', NULL, 'parent/page-2', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'testimonials', 0, 0)  (0.4ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:22:12', NULL, '2012-08-31 12:22:12', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:22:12' WHERE `spud_pages`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:22:12', NULL, '2012-08-31 12:22:12', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:22:12' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:22:12', NULL, '2012-08-31 12:22:12', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:22:12', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:22:12', 'test', 'Body', NULL, '2012-08-31 12:22:12') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:22:12', 'Template3', 'Body', NULL, '2012-08-31 12:22:12') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:22:12', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:22:12', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (1.0ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.1ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.9ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Rendered /Users/davydotcom/projects/ruby/engines/spud_cms/app/views/spud/cms/sitemaps/show.xml.builder (4.9ms) Completed 200 OK in 23ms (Views: 13.7ms | ActiveRecord: 2.2ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:24:55', NULL, NULL, 3, '2012-08-31 12:24:55')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:24:55', NULL, 'parent/page-1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:24:55', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:24:55', NULL, '2012-08-31 12:24:55', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:24:55' WHERE `spud_pages`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'permapage', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:24:55', NULL, '2012-08-31 12:24:55', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:24:55' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.6ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:24:55', NULL, '2012-08-31 12:24:55', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:24:55', NULL, '2012-08-31 12:24:55', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:24:55' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:24:55', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 13 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:24:55', 'test', 'Body', NULL, '2012-08-31 12:24:55') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:24:55', 'Template3', 'Body', NULL, '2012-08-31 12:24:55') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:24:55', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:24:55', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.9ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.6ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.0ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 23ms (Views: 13.6ms | ActiveRecord: 2.1ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:29:00', NULL, NULL, 3, '2012-08-31 12:29:00')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:29:00', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:29:00', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'about', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:29:00', NULL, '2012-08-31 12:29:00', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:29:00' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:29:00', NULL, '2012-08-31 12:29:00', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:29:00' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:29:00', NULL, '2012-08-31 12:29:00', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:29:00', NULL, '2012-08-31 12:29:00', 'original') SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:29:00' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:00', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 13 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:29:00', 'test', 'Body', NULL, '2012-08-31 12:29:00') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:29:00', 'Template3', 'Body', NULL, '2012-08-31 12:29:00') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:00', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:29:00', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.9ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.6ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.5ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.4ms) TRUNCATE TABLE `spud_user_settings`;  (1.0ms) TRUNCATE TABLE `spud_users`;  (0.0ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 23ms (Views: 13.8ms | ActiveRecord: 2.1ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'page3', 0, 0) SQL (0.3ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:29:25', NULL, NULL, 3, '2012-08-31 12:29:25')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.5ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:29:25', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:29:25', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.5ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:29:25', NULL, '2012-08-31 12:29:25', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:29:25' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:29:25', NULL, '2012-08-31 12:29:25', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:29:25' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.3ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:29:25', NULL, '2012-08-31 12:29:25', 'permapage-new')  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:29:25', NULL, '2012-08-31 12:29:25', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:29:25' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:29:25', NULL, 'new', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 13 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:29:25', 'test', 'Body', NULL, '2012-08-31 12:29:25') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:29:25', 'Template3', 'Body', NULL, '2012-08-31 12:29:25') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:29:25', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:29:25', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.1ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (0.5ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (1.0ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:28', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:28', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:28', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:28', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML Redirected to http://test.host/spud/user_session/new Filter chain halted as :require_admin_user rendered or redirected Completed 302 Found in 29ms (ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 15ms (Views: 12.5ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:28', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:28', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:28', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:28', NULL, 'test', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'page5', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:32:29', NULL, NULL, 5, '2012-08-31 12:32:29')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 5 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.4ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 5 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.3ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 6) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 6, NULL, '2012-08-31 12:32:29', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 6) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 6, NULL, '2012-08-31 12:32:29', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 9) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 11) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (11, 'SpudPage', '2012-08-31 12:32:29', NULL, '2012-08-31 12:32:29', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 11 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 11 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:32:29' WHERE `spud_pages`.`id` = 11  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'permapage', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:32:29', NULL, '2012-08-31 12:32:29', 'permapage') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:32:29' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.3ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 12 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:32:29', NULL, '2012-08-31 12:32:29', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 12 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 14) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (14, 'SpudPage', '2012-08-31 12:32:29', NULL, '2012-08-31 12:32:29', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:32:29' WHERE `spud_pages`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:32:29', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 14 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:32:29', 'test', 'Body', NULL, '2012-08-31 12:32:29') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:32:29', 'Template3', 'Body', NULL, '2012-08-31 12:32:29') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:32:29', NULL, 'html', 1, NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:32:29', NULL, 'page6', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.7ms) TRUNCATE TABLE `spud_pages`;  (0.7ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.6ms) TRUNCATE TABLE `spud_user_settings`;  (1.0ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 21ms (Views: 12.1ms | ActiveRecord: 2.2ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:33:21', NULL, NULL, 3, '2012-08-31 12:33:21')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:33:21', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:33:21', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.5ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:33:21', NULL, '2012-08-31 12:33:21', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:33:21' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:33:21', NULL, '2012-08-31 12:33:21', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:33:21' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:33:21', NULL, '2012-08-31 12:33:21', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:33:21', NULL, '2012-08-31 12:33:21', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:33:21' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:33:21', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 13 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:33:21', 'test', 'Body', NULL, '2012-08-31 12:33:21') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:33:21', 'Template3', 'Body', NULL, '2012-08-31 12:33:21') SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:33:21', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:33:21', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.9ms) TRUNCATE TABLE `spud_page_partials`;  (0.8ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.0ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 23ms (Views: 13.7ms | ActiveRecord: 2.1ms) SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'test', 1, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'test', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:34:28', NULL, NULL, 3, '2012-08-31 12:34:28')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:34:28', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (27.5ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:34:28', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.5ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:34:28', NULL, '2012-08-31 12:34:28', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:34:28' WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:34:28', NULL, '2012-08-31 12:34:28', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:34:28' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:34:28', NULL, '2012-08-31 12:34:28', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:34:28', NULL, '2012-08-31 12:34:28', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:34:28' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:28', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 13 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:34:28', 'test', 'Body', NULL, '2012-08-31 12:34:28') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:34:28', 'Template3', 'Body', NULL, '2012-08-31 12:34:28') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:28', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:34:28', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) SELECT DATABASE() as db  (2.0ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (0.5ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.6ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.0ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 21ms (Views: 12.4ms | ActiveRecord: 2.1ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.4ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'test', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:34:44', NULL, NULL, 3, '2012-08-31 12:34:44')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:34:44', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (27.8ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:34:44', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'about', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:34:44', NULL, '2012-08-31 12:34:44', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:34:44' WHERE `spud_pages`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:44', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:44', NULL, 'permapage', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:34:44', NULL, '2012-08-31 12:34:44', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:34:45' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.3ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:34:45', NULL, '2012-08-31 12:34:45', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:45', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:45', NULL, 'original', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:45', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:45', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:34:45', NULL, '2012-08-31 12:34:45', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:34:45' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:45', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:34:45', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 13 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:34:45', 'test', 'Body', NULL, '2012-08-31 12:34:45') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:34:45', 'Template3', 'Body', NULL, '2012-08-31 12:34:45') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:34:45', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:34:45', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.2ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.5ms) TRUNCATE TABLE `spud_permalinks`;  (0.6ms) TRUNCATE TABLE `spud_templates`;  (0.4ms) TRUNCATE TABLE `spud_user_settings`;  (0.8ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudUser Exists (0.5ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '313ebc5c8cf6cc30cead2f31c71445accc6423c2e9d85ad98dfa4ec7a1a3284078810a878de844ba2949a7dfc86eefbf4a70cf2cd9fb7db0039c8cab13245446' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ZbQOyPp0nYqD6v8jTQv' LIMIT 1  (0.2ms) ROLLBACK TO SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:35:02', '335f9a61bbeeea8351ff2d1c5d17c88ddb395e225c7be47afd6697515c9a987d0b93a7a95c3c2a6dbfa5804560034ee6f2571d62feb4badc48225bfd714b358e', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 'testuser', 0, '37ThSE8wGM9tHVY5oze', 'bOgbehp6UCJKSTSyb2kx', '313ebc5c8cf6cc30cead2f31c71445accc6423c2e9d85ad98dfa4ec7a1a3284078810a878de844ba2949a7dfc86eefbf4a70cf2cd9fb7db0039c8cab13245446', 'ZbQOyPp0nYqD6v8jTQv', 1, NULL, '2012-08-31 12:35:02') Mysql2::Error: Column 'email' cannot be null: INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:35:02', '335f9a61bbeeea8351ff2d1c5d17c88ddb395e225c7be47afd6697515c9a987d0b93a7a95c3c2a6dbfa5804560034ee6f2571d62feb4badc48225bfd714b358e', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 'testuser', 0, '37ThSE8wGM9tHVY5oze', 'bOgbehp6UCJKSTSyb2kx', '313ebc5c8cf6cc30cead2f31c71445accc6423c2e9d85ad98dfa4ec7a1a3284078810a878de844ba2949a7dfc86eefbf4a70cf2cd9fb7db0039c8cab13245446', 'ZbQOyPp0nYqD6v8jTQv', 1, NULL, '2012-08-31 12:35:02')  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 45ms (Views: 39.3ms | ActiveRecord: 2.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'page3', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:35:02', NULL, NULL, 3, '2012-08-31 12:35:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 3 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 3 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.3ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:35:02', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 4) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 4, NULL, '2012-08-31 12:35:02', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 7) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.4ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:35:02', NULL, '2012-08-31 12:35:02', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:35:02' WHERE `spud_pages`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:35:02', NULL, '2012-08-31 12:35:02', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:35:02' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:35:02', NULL, '2012-08-31 12:35:02', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:02', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:02', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:03', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:03', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:35:03', NULL, '2012-08-31 12:35:03', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:35:03' WHERE `spud_pages`.`id` = 12  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:03', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:03', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 13 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:35:03', 'test', 'Body', NULL, '2012-08-31 12:35:03') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:35:03', 'Template3', 'Body', NULL, '2012-08-31 12:35:03') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:03', NULL, 'html', 1, NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:35:03', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.7ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (1.1ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'da0c823b48b92629c9d5134ce678edeb1cf094d266dcc48e3d463d75bc27b8fbff9dabaa6ea55f5563ff0180269637e20ee4dad17e56c9ef23bca6728178d338' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'TBbc8pPLGMoUUs2VLQ1' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:35:22', '517778a4815557e7fe0976e6b670ca6e2064b65839fcc03310013d225add33cc7be5a183dedd0c2d5c5cab7dfd328af5ee2a2633aeb2b6e880ff86a7f3a5df9d', '2012-08-31 12:35:22', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:35:22', 'testuser', 1, 'CSkQam4hu7CBcdUvtiSq', 'dUDIBO3LUGU0EgOXJ3jZ', 'da0c823b48b92629c9d5134ce678edeb1cf094d266dcc48e3d463d75bc27b8fbff9dabaa6ea55f5563ff0180269637e20ee4dad17e56c9ef23bca6728178d338', 'TBbc8pPLGMoUUs2VLQ1', 1, NULL, '2012-08-31 12:35:22')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:35:22', `current_login_at` = '2012-08-31 12:35:22', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:35:22', `perishable_token` = 'gD05C5d1VEZ743M44Bhs', `updated_at` = '2012-08-31 12:35:22' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:35:22', `perishable_token` = 'mnRyO8LeCv3Pj1Sb14UV', `updated_at` = '2012-08-31 12:35:22' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.3ms) SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.5ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'page5', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:35:22', NULL, NULL, 5, '2012-08-31 12:35:22')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 5 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 5 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'parent', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 6) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 6, NULL, '2012-08-31 12:35:22', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 6) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 6, NULL, '2012-08-31 12:35:22', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'about', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 9) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 11) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (11, 'SpudPage', '2012-08-31 12:35:22', NULL, '2012-08-31 12:35:22', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 11 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 11 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:35:22' WHERE `spud_pages`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'permapage', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:35:22', NULL, '2012-08-31 12:35:22', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:35:22' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 12 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:35:22', NULL, '2012-08-31 12:35:22', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 12 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 14) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (14, 'SpudPage', '2012-08-31 12:35:22', NULL, '2012-08-31 12:35:22', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:35:22' WHERE `spud_pages`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:22', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 14 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:35:22', 'test', 'Body', NULL, '2012-08-31 12:35:22') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:35:22', 'Template3', 'Body', NULL, '2012-08-31 12:35:22') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:22', NULL, 'html', 1, NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:35:22', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.2ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.9ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.7ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '65c42e94ad9874b5d9fc64eb44764d42e53562e62c6ddb567000e05663e7f14933030a4114efaa80640b613a112d80970e8b5fd9ab1e05b51a94fb8b5d1bf20b' LIMIT 1 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Q5treMn14ZELKT0Siw' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:35:56', '9ce0f4d0be2b234d5125327247eaf0766c3b5db42ca0b55cffecce307ef12332755b89fb9a70668be8ebf7678a8b44908cf48ff9125047ea5e028ce66381baba', '2012-08-31 12:35:56', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:35:56', 'testuser', 1, 'idiBrjUNFtCgQK74pJsU', '29SaudH4nH2jlpOUDfz', '65c42e94ad9874b5d9fc64eb44764d42e53562e62c6ddb567000e05663e7f14933030a4114efaa80640b613a112d80970e8b5fd9ab1e05b51a94fb8b5d1bf20b', 'Q5treMn14ZELKT0Siw', 1, NULL, '2012-08-31 12:35:56')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:35:56', `current_login_at` = '2012-08-31 12:35:56', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:35:56', `perishable_token` = 'D0x5x6bgRUW5q1Fe9og', `updated_at` = '2012-08-31 12:35:56' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:35:56', `perishable_token` = 'hOl0qRLAP2DL6mqcLcMV', `updated_at` = '2012-08-31 12:35:56' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.4ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'test', 1, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (30.0ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'page5', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:35:56', NULL, NULL, 5, '2012-08-31 12:35:56')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 5 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 5 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 6) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 6, NULL, '2012-08-31 12:35:56', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 6) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 6, NULL, '2012-08-31 12:35:56', NULL, 'parent/page-2', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 9) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 11) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (11, 'SpudPage', '2012-08-31 12:35:56', NULL, '2012-08-31 12:35:56', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 11 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 11 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:35:56' WHERE `spud_pages`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1 SpudPermalink Load (0.4ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:35:56', NULL, '2012-08-31 12:35:56', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:35:56' WHERE `spud_pages`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 12 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 12) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 12 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (12, 'SpudPage', '2012-08-31 12:35:56', NULL, '2012-08-31 12:35:56', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 12 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 12 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 14) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (14, 'SpudPage', '2012-08-31 12:35:56', NULL, '2012-08-31 12:35:56', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:35:56' WHERE `spud_pages`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:35:56', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 14 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:35:56', 'test', 'Body', NULL, '2012-08-31 12:35:56') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:35:56', 'Template3', 'Body', NULL, '2012-08-31 12:35:56') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:35:56', NULL, 'html', 1, NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:35:56', NULL, 'page6', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (30.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.9ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.6ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.8ms) TRUNCATE TABLE `spud_pages`;  (0.7ms) TRUNCATE TABLE `spud_permalinks`;  (0.6ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (0.9ms) TRUNCATE TABLE `spud_users`;  (0.0ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5a364d442cd9e5374ef044d0750115ce1709e8ccfe52c10ac315f7d7ede0747623fb3bbc59af849d49a1cfbbb06d9b242aa720b7ce8c568ed406ee2181821251' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'KNg4S2y2QvpR8Dk5RTj' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:37:12', '590b3fec6119044de9a945a20e3e62be491769ae4cbaaffbfcb713562330734ef2f2f697da548b45a54433e18ebbce22271108472a14bf2e5e4ad638702018a6', '2012-08-31 12:37:12', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:37:12', 'testuser', 1, '2LLJVMVCb00qUV70Ptzm', 'XpvXexglA5U3fB8A1Gad', '5a364d442cd9e5374ef044d0750115ce1709e8ccfe52c10ac315f7d7ede0747623fb3bbc59af849d49a1cfbbb06d9b242aa720b7ce8c568ed406ee2181821251', 'KNg4S2y2QvpR8Dk5RTj', 1, NULL, '2012-08-31 12:37:12')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:37:12', `current_login_at` = '2012-08-31 12:37:12', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:37:12', `perishable_token` = '9KaADizWWKLallcdKVy', `updated_at` = '2012-08-31 12:37:12' WHERE `spud_users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:37:12', `perishable_token` = '1HVyVWU7IoQYRW2R0E', `updated_at` = '2012-08-31 12:37:12' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.1ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '7697e134ad04b2c66acd2b0e038d7b1d59159ae5094375fa9c59a2ce64b5cb44503e751e5aeaa3c27177bd3575372c4b880f7884df112d0546b8ebd4ce0e8d3e' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'P8XOIntLjvds1byLy50' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:37:12', 'e5149903d17c10343ddcf25360a966f7466e28608306f48f4edaef313100a29db61b69b8673b794b3f66435defa3df1f2d310127346bb4bf25009e1e40f568a9', '2012-08-31 12:37:12', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:37:12', 'testuser', 1, 'voK8I4WnD7GXYEuUtNu', 'vFfFxc1kaCP98KSdzjcC', '7697e134ad04b2c66acd2b0e038d7b1d59159ae5094375fa9c59a2ce64b5cb44503e751e5aeaa3c27177bd3575372c4b880f7884df112d0546b8ebd4ce0e8d3e', 'P8XOIntLjvds1byLy50', 1, NULL, '2012-08-31 12:37:12')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:37:12', `current_login_at` = '2012-08-31 12:37:12', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:37:12', `perishable_token` = 'PScAH5Akgp82pKW2eo5B', `updated_at` = '2012-08-31 12:37:12' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'page4', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:37:12', NULL, 'page5', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 37ms (Views: 35.1ms | ActiveRecord: 0.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'page8', 0, 0) SQL (0.3ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:37:12', NULL, NULL, 8, '2012-08-31 12:37:12')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 8 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 8 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:12', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:12', NULL, 'parent', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 9) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 9, NULL, '2012-08-31 12:37:13', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 9) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 9, NULL, '2012-08-31 12:37:13', NULL, 'parent/page-2', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:13', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 12) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:13', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:13', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 14) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (14, 'SpudPage', '2012-08-31 12:37:13', NULL, '2012-08-31 12:37:13', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:37:13' WHERE `spud_pages`.`id` = 14  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 14 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:13', NULL, 'permapage', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:37:13', NULL, '2012-08-31 12:37:13', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:37:13' WHERE `spud_pages`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:37:13', NULL, '2012-08-31 12:37:13', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:13', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:13', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 17) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (17, 'SpudPage', '2012-08-31 12:37:13', NULL, '2012-08-31 12:37:13', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:37:13' WHERE `spud_pages`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:13', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 17 LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:37:13', 'test', 'Body', NULL, '2012-08-31 12:37:13') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:37:13', 'Template3', 'Body', NULL, '2012-08-31 12:37:13') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:13', NULL, 'html', 1, NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:37:13', NULL, 'page9', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (0.6ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.8ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.9ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.0ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ebc37f26c6e38cbac914e404032d289df278da3ad9f34097f936350a582a6b635bc3cf1d823867c22bc132be5e280c03a1462b576c74851a774a86fe46f03b8b' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'JDZAPPgAYOSPud27jlF2' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:37:46', '1095888d9ee117a6550972be9b3a386b6ef9a5fd98e6ac8f1b3f809bdf2249e4bb57326f9c3ef61403b903399f2beb98dc4679fafdd1980d75240381dfe67c6a', '2012-08-31 12:37:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:37:46', 'testuser', 1, '4j8GrZWbx6cqBHX7cKR', '1C5KaSjvdDqC3aaKSqbI', 'ebc37f26c6e38cbac914e404032d289df278da3ad9f34097f936350a582a6b635bc3cf1d823867c22bc132be5e280c03a1462b576c74851a774a86fe46f03b8b', 'JDZAPPgAYOSPud27jlF2', 1, NULL, '2012-08-31 12:37:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:37:46', `current_login_at` = '2012-08-31 12:37:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:37:46', `perishable_token` = 'HZseUYmHXeEdDLwd1mC', `updated_at` = '2012-08-31 12:37:46' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:46', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:46', NULL, 'page1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:46', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:46', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:37:46', `perishable_token` = 'HJvrreElc77uRdhpcCtN', `updated_at` = '2012-08-31 12:37:46' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 15ms (Views: 9.2ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '277316123226ea529c5580775758487c001574eba86a9fd605ac193b163f035275f2dba8da1a5227e373136d4e9b02be24f0cf380d0fdb3776bb027917b3c0e9' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'McxPVRJI9t6mU1LjpTV' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:37:46', 'a3397c45a8fd28fbdf0225f27d9b72f3a743f92c9df4f7fa1990240d4ff9226cb5b5cc53420975ceb5f1c756c27121b9679f94144c8a8afea6774f88bc162114', '2012-08-31 12:37:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:37:46', 'testuser', 1, 'UVxtXd01UQnGdQprdLZ', '2JwzfQ2jefWuy59dkttB', '277316123226ea529c5580775758487c001574eba86a9fd605ac193b163f035275f2dba8da1a5227e373136d4e9b02be24f0cf380d0fdb3776bb027917b3c0e9', 'McxPVRJI9t6mU1LjpTV', 1, NULL, '2012-08-31 12:37:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:37:46', `current_login_at` = '2012-08-31 12:37:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:37:46', `perishable_token` = 'Vm6wsBNgxSqI7iPDb2o', `updated_at` = '2012-08-31 12:37:46' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:46', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:46', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:46', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:46', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:46', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:37:46', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:37:46', `perishable_token` = '3ElZCvP6n9YdqknMjhDr', `updated_at` = '2012-08-31 12:37:46' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 37ms (Views: 34.4ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'test', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'page8', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:37:47', NULL, NULL, 8, '2012-08-31 12:37:47')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 8 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 8 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 9) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 9, NULL, '2012-08-31 12:37:47', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 9) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 9, NULL, '2012-08-31 12:37:47', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 12) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 14) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (14, 'SpudPage', '2012-08-31 12:37:47', NULL, '2012-08-31 12:37:47', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 14 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:37:47' WHERE `spud_pages`.`id` = 14  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 14 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:37:47', NULL, '2012-08-31 12:37:47', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:37:47' WHERE `spud_pages`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:37:47', NULL, '2012-08-31 12:37:47', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 17) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.1ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (17, 'SpudPage', '2012-08-31 12:37:47', NULL, '2012-08-31 12:37:47', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:37:47' WHERE `spud_pages`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:37:47', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 17 LIMIT 1  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:37:47', 'test', 'Body', NULL, '2012-08-31 12:37:47') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:37:47', 'Template3', 'Body', NULL, '2012-08-31 12:37:47') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:37:47', NULL, 'html', 1, NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:37:47', NULL, 'page9', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.3ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.5ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.0ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '0a0add9a4f11f2b45af3b9b2bf14ff68ae9e33d6834910c010761a3cd06d146352c89525e219e80d03fb181c53ccc35b93ff90329ec3d217c7d5616f8473b72a' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'fDu6t42NCg7Z22DCG4w' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:40:53', '8bcb4cf9a6510315893ca0dd9830ecbd7ae6de753aad15177963abc0505dd888cfbced03cd9899daa1bce648790f7e02c4608c409b6f73c05107bbf8d171c7dc', '2012-08-31 12:40:53', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:40:53', 'testuser', 1, 'ZpKqKhxrSmqDp9oyDz4', 'ZbunlEUgdOcaRhHqxrP', '0a0add9a4f11f2b45af3b9b2bf14ff68ae9e33d6834910c010761a3cd06d146352c89525e219e80d03fb181c53ccc35b93ff90329ec3d217c7d5616f8473b72a', 'fDu6t42NCg7Z22DCG4w', 1, NULL, '2012-08-31 12:40:53')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.4ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:40:53', `current_login_at` = '2012-08-31 12:40:53', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = 'xLxUBITcd58xa4XPsKz', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = 'rqSycNpZs5l631iVRMze', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '39e50a2cf60edf951c0e1d9fa82a5da195ed56fa7483835ec487ee889d55c89b71fa6b1de3a3b8dde5182b044bbe9764ada7f75f2068278aa075b68f7510d187' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'auHvWT0pWDOSqFjBzdtp' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:40:53', '91dd90e2c59540a4f87392de7643bb46a1bac390fee7d4bc8daab5f3c0a66a3a6ba3f1ab73785266509447f8753c4c35b745e8786f271f53b737a883baca5ff1', '2012-08-31 12:40:53', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:40:53', 'testuser', 1, '00ajecj9RNkoMjDoZNC', '6g2Ih1ZQZMrmiiLVV9Bu', '39e50a2cf60edf951c0e1d9fa82a5da195ed56fa7483835ec487ee889d55c89b71fa6b1de3a3b8dde5182b044bbe9764ada7f75f2068278aa075b68f7510d187', 'auHvWT0pWDOSqFjBzdtp', 1, NULL, '2012-08-31 12:40:53')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:40:53', `current_login_at` = '2012-08-31 12:40:53', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = 'cnPWW1mmZ0wPFMFW2d7', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:40:53', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = 'JMrnMM6S5dXBU1AhQd', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3825abf65cf06cd4b413523c4f770a3974050d91a3e63ad1fe1f266a0d7007eda1c8b6e8680ead187a3a673a67af946b3ff86465f2f46e6789505bf9df82f5c0' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'sWdA0d7z00IstB6vJy06' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:40:53', 'd530ef6b7c2e602ed404479322d58f1de7887a03ce47ee3136a0acb6e166b8e06defd29b7f1bb8e36fd16ec60aa18f3031a80c93089af1d1a2636639a194d0c5', '2012-08-31 12:40:53', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:40:53', 'testuser', 1, 'v5G3VJqzAsDP5I8eaT', 'mfajl4RpysInvcIYcsZ', '3825abf65cf06cd4b413523c4f770a3974050d91a3e63ad1fe1f266a0d7007eda1c8b6e8680ead187a3a673a67af946b3ff86465f2f46e6789505bf9df82f5c0', 'sWdA0d7z00IstB6vJy06', 1, NULL, '2012-08-31 12:40:53')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:40:53', `current_login_at` = '2012-08-31 12:40:53', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = 'L9BTfeZSYGhYTbmsbwVD', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'page6', 0, 0)  (0.3ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = 't33LjUbnpezQcfuARGht', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 25ms (Views: 2.8ms | ActiveRecord: 2.6ms)  (1.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b3caa0d60ba1b75790c1f03f6a648fe90b0c87f195363d04d51e1b59eba3328b8b437069585537df8c1f418c68f166af62456b97736f59cdf8ce66fc669af651' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'v6uXCpJ83XMw9ZauNI' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:40:53', '3bbbb1151694a0050e2d0b2b2bfcdef4ede26ae9f11c674b30a4c5bad305b80d401f9cd421bceeb86b46dfb48fd7eeb65b8f8bf08a6a0cd8016eba6f67053876', '2012-08-31 12:40:53', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:40:53', 'testuser', 1, 'SnQj51539orN0Avc', 'YwrW6MSF6moo8inoHRoc', 'b3caa0d60ba1b75790c1f03f6a648fe90b0c87f195363d04d51e1b59eba3328b8b437069585537df8c1f418c68f166af62456b97736f59cdf8ce66fc669af651', 'v6uXCpJ83XMw9ZauNI', 1, NULL, '2012-08-31 12:40:53')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:40:53', `current_login_at` = '2012-08-31 12:40:53', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = '7fA4qd7pR5xYkL3cDcU', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.1ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:40:53', `perishable_token` = 'y6PdnxEJ6taWwN3V2GP', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.5ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'page9', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:40:53', NULL, NULL, 9, '2012-08-31 12:40:53')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 9 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 9 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.3ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'parent', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:40:53', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:40:53', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 13) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:40:53', NULL, '2012-08-31 12:40:53', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_pages`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'permapage', 0, 0)  (0.3ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:40:53', NULL, '2012-08-31 12:40:53', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_pages`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:40:53', NULL, '2012-08-31 12:40:53', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:40:53', NULL, '2012-08-31 12:40:53', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:40:53' WHERE `spud_pages`.`id` = 18  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:40:53', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:40:53', 'test', 'Body', NULL, '2012-08-31 12:40:53') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:40:53', 'Template3', 'Body', NULL, '2012-08-31 12:40:53') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:40:53', NULL, 'html', 1, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:40:53', NULL, 'page10', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.8ms) TRUNCATE TABLE `spud_pages`;  (0.7ms) TRUNCATE TABLE `spud_permalinks`;  (0.6ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (1.0ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'dfc42396a9c585ef86113d840a8f2ad67509a7a14eccbcc89937f67dc719dd18902cdd84c1757e06dd8c9a7be5ab01fc476032567d0a11c6b8fb55baf216325f' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'AQxlM5NS435XIfjK5Gx' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:41:51', '3c0965d0488d82ed8345e6f4cc9d4e8bc2af8f87ce3ab37d1bf05995c0174d741b6fc91bbd4c2bf081115bedf98cbf5102b65edc6c515513a01b0877255f2a8c', '2012-08-31 12:41:51', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:41:51', 'testuser', 1, 'yt7GZ4OigHRdu59TEV0a', 'nAk4y9ghwPH3YBDOyjc', 'dfc42396a9c585ef86113d840a8f2ad67509a7a14eccbcc89937f67dc719dd18902cdd84c1757e06dd8c9a7be5ab01fc476032567d0a11c6b8fb55baf216325f', 'AQxlM5NS435XIfjK5Gx', 1, NULL, '2012-08-31 12:41:51')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:41:51', `current_login_at` = '2012-08-31 12:41:51', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'tja99kBeJnDvSxuJCfNc', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'page2', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'TuHxChdArGiWbOVucMK', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8ea01fea59cf501a64e09f404d013149e9ae3455a351632096c9b1c38d47fe5e2b88c20de9ce6d43f27ef13f347e4da371367fe1cc553e2f0bebf03bd6029f17' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'JyAXdqakr0BBtulVTFkQ' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:41:51', '8ef434cd02e5cacccd1bc50ee60173c052728b5c1ec26415cdd4933bece40492745700ab29eccabffe830ec065c1bfa2a58a52a2891de186dac6a1b3b058a321', '2012-08-31 12:41:51', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:41:51', 'testuser', 1, '9oqtqxgC39vOZoxugKh6', '5XUZkRMKF1yU6EaZEIrY', '8ea01fea59cf501a64e09f404d013149e9ae3455a351632096c9b1c38d47fe5e2b88c20de9ce6d43f27ef13f347e4da371367fe1cc553e2f0bebf03bd6029f17', 'JyAXdqakr0BBtulVTFkQ', 1, NULL, '2012-08-31 12:41:51')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:41:51', `current_login_at` = '2012-08-31 12:41:51', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'SbWHhbzMfQhX6sGOoIn', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:41:51', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'mi5jjHSDVK4EpbPtcICA', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '22bd93b135308b96fd658d4cdd1b0ef661c9b333fd531641c6a7b572317be746b1fb02ef939e5e88eda047b55d6620617300f4b86cfea58b968de10604440433' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'F9fx79AGRBk6bdPQFIIh' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:41:51', '843585b87aa6a1d6b91464b11d1deb4ecfea3f49d5023c4da4ea5232b40a1710a4c936bf3113e353e7da079da91bfe6a1e3159733e5a504a1a683bcbf3766fd3', '2012-08-31 12:41:51', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:41:51', 'testuser', 1, 'aSDybGip1om2glrIi1uC', 'C8FuCL5ljsRl0kgc3FK6', '22bd93b135308b96fd658d4cdd1b0ef661c9b333fd531641c6a7b572317be746b1fb02ef939e5e88eda047b55d6620617300f4b86cfea58b968de10604440433', 'F9fx79AGRBk6bdPQFIIh', 1, NULL, '2012-08-31 12:41:51')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:41:51', `current_login_at` = '2012-08-31 12:41:51', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'IiN1fGqLL05o3GdddTVl', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'page6', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'S1mdMwNp6KGl4126l0x', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 22ms (Views: 1.5ms | ActiveRecord: 3.5ms)  (1.0ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '74c8aa340a9f8c796dc5aba4b96e6bd573bca40d16f0ce5a19e5c9345ff7e6beb95b0bacbc9a48ada9d0bc7830741df68f6b5dac0310c81bccca2b037592e0dd' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '4Twy9GFT2IyUwBQqPyNY' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:41:51', 'e40169b7669b8516bf127bd85d2f94ece5b7914e3b3fef4565d9867d0e0b65d9cff1ea077a8dd1438bd3b19ad04138feebd292f9665b9196bba5104053a0e2ec', '2012-08-31 12:41:51', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:41:51', 'testuser', 1, 'MbAbqkhNEFjKET4EVIUS', 'TC6z3EulqhxytCdPyVsN', '74c8aa340a9f8c796dc5aba4b96e6bd573bca40d16f0ce5a19e5c9345ff7e6beb95b0bacbc9a48ada9d0bc7830741df68f6b5dac0310c81bccca2b037592e0dd', '4Twy9GFT2IyUwBQqPyNY', 1, NULL, '2012-08-31 12:41:51')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:41:51', `current_login_at` = '2012-08-31 12:41:51', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'tLMZCLuGFcNWINlK25QK', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:41:51', `perishable_token` = 'g8E1Mq7slhIxUV56tg1M', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms) SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'page9', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:41:51', NULL, NULL, 9, '2012-08-31 12:41:51')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 9 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 9 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:41:51', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:41:51', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 13) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:41:51', NULL, '2012-08-31 12:41:51', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_pages`.`id` = 15  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:41:51', NULL, '2012-08-31 12:41:51', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_pages`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:41:51', NULL, '2012-08-31 12:41:51', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:41:51', NULL, '2012-08-31 12:41:51', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:41:51' WHERE `spud_pages`.`id` = 18  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:51', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:41:51', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:41:52', 'test', 'Body', NULL, '2012-08-31 12:41:52') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:41:52', 'Template3', 'Body', NULL, '2012-08-31 12:41:52') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:41:52', NULL, 'html', 1, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:41:52', NULL, 'page10', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.4ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.9ms) TRUNCATE TABLE `spud_menus`;  (1.0ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.9ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.7ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.0ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.5ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '52884d101fd8131239569ffa74da42ebecd8ee2e87ac59204eb14d14f0565a89530ebfb0d6f9f52ab4735df4bb35986e44df0b454505398d087b78bdf646ae38' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '2O8vvrBFbLeBjS1KjgT' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:42:55', 'a0ac5652bf5c87a307bb492bbc62345b587395b95628cac39c84541a00709e71d2504e24a99cbc02e13029af549dd4d1bdf35789ac3c8d51402e030e482af38f', '2012-08-31 12:42:55', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:42:55', 'testuser', 1, '9EuSp2NAd91O5NMn5GxY', 'gYEKBVcA78ZCeVFYhQ59', '52884d101fd8131239569ffa74da42ebecd8ee2e87ac59204eb14d14f0565a89530ebfb0d6f9f52ab4735df4bb35986e44df0b454505398d087b78bdf646ae38', '2O8vvrBFbLeBjS1KjgT', 1, NULL, '2012-08-31 12:42:55')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:42:55', `current_login_at` = '2012-08-31 12:42:55', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'vF74IZNy8etjlGoiOm', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'cXlOZBP7cYxqg8fH0TCM', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '6328fa1df13d4151ff95d9ce861585a2853774acf98637113d597ee94e632d3f4273efc40445b727d6deed1ae3551c3262013990498ce5a962b4308a16fedd5a' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'dwN8HPeQMMzwOx3c8H7' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:42:55', 'd092c2feca0597670bcc8c363379cfd4ea520f12f5d00f2bc0fb13ead5166ca6de30531b3c946d7e5f717435c35bd4b251c98e9bd6e2f3ecaa5f5e787d836c0c', '2012-08-31 12:42:55', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:42:55', 'testuser', 1, 'PE3VBg3sldiFilBOJIl', 'wjNW3qtBXTtw6o4B0kNf', '6328fa1df13d4151ff95d9ce861585a2853774acf98637113d597ee94e632d3f4273efc40445b727d6deed1ae3551c3262013990498ce5a962b4308a16fedd5a', 'dwN8HPeQMMzwOx3c8H7', 1, NULL, '2012-08-31 12:42:55')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:42:55', `current_login_at` = '2012-08-31 12:42:55', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'w2bQS7uwzE1XCkYZijx', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'page3', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'page4', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:42:55', NULL, 'page5', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'eqreJlwwYGa9hcKk3h', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 1.0ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '47fb8a83bc2d0b9cf220e6e75cec9e8f6e37573e5d09b774e2ba68e8da2ea8f27d2091d0b49bd8bb75212c7cb7a225b45c3ae72d26dcd616168ecbcade083f0f' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '2bkq5ddhWMFDv5TXNxkN' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:42:55', 'aee271a7c58710279f938f2e4585f071c0d0aa209c407dc78fe55a8c7ebb795a508af8f7b748b0ea8ed1c2f8645c95524612037bd4597b95fe19173945747d2a', '2012-08-31 12:42:55', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:42:55', 'testuser', 1, 'bvScXtL8Kiu8QSItUrx', 'j1iClPwF576j7xqr9iv', '47fb8a83bc2d0b9cf220e6e75cec9e8f6e37573e5d09b774e2ba68e8da2ea8f27d2091d0b49bd8bb75212c7cb7a225b45c3ae72d26dcd616168ecbcade083f0f', '2bkq5ddhWMFDv5TXNxkN', 1, NULL, '2012-08-31 12:42:55')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:42:55', `current_login_at` = '2012-08-31 12:42:55', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'U78BIj8ZkK550CjjoFOs', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'VuMOUTJ7KBfUVQ1YnPJ', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 22ms (Views: 1.7ms | ActiveRecord: 3.0ms)  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a4ad1ae60c55918d4fd48abf2a04dbeed42433815738ed265d2103f618e5580ffba57e6b653c1d258a5eb8b27e9ec99c9182e9048a0a45e6a67ac7f25422c7ed' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'OJcz3PSEZ4qzKP9baxr' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:42:55', '43166510b7ee648c335db7ddcbfd2d517b1379de273e6a821a8bbabe7162f9ada48cbf351070dcec4b32e8927814acfc15e01b25defcd51390532cf43019c4d0', '2012-08-31 12:42:55', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:42:55', 'testuser', 1, 'gtxEH6wqGRW59qKQr7K7', 'CrN85cxfPaXN0oz6X3K', 'a4ad1ae60c55918d4fd48abf2a04dbeed42433815738ed265d2103f618e5580ffba57e6b653c1d258a5eb8b27e9ec99c9182e9048a0a45e6a67ac7f25422c7ed', 'OJcz3PSEZ4qzKP9baxr', 1, NULL, '2012-08-31 12:42:55')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:42:55', `current_login_at` = '2012-08-31 12:42:55', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'WKSYqXr7N224BPjMEGHI', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:42:55', `perishable_token` = 'aOmxKOQEBkOSDbYfWTp', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'page9', 0, 0) SQL (0.1ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:42:55', NULL, NULL, 9, '2012-08-31 12:42:55')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 9 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 9 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:42:55', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:42:55', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (30.0ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 13) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'testimonials', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.4ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:42:55', NULL, '2012-08-31 12:42:55', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_pages`.`id` = 15  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:42:55', NULL, '2012-08-31 12:42:55', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_pages`.`id` = 16  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:42:55', NULL, '2012-08-31 12:42:55', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:42:55', NULL, '2012-08-31 12:42:55', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:42:55' WHERE `spud_pages`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:42:55', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:42:55', 'test', 'Body', NULL, '2012-08-31 12:42:55') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:42:55', 'Template3', 'Body', NULL, '2012-08-31 12:42:55') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:42:55', NULL, 'html', 1, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:42:55', NULL, 'page10', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.5ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.0ms) TRUNCATE TABLE `spud_page_partials`;  (0.8ms) TRUNCATE TABLE `spud_pages`;  (0.6ms) TRUNCATE TABLE `spud_permalinks`;  (0.7ms) TRUNCATE TABLE `spud_templates`;  (0.4ms) TRUNCATE TABLE `spud_user_settings`;  (0.9ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ac63adb9ce455879c9794bef77d7840269e9ff8c2dbf948c377477ca5f887342d4f439d494a60481cc8ec4b259220ed8cad271a4f4b8b0ad16c911755db41c0f' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'tkH0zQw1LzxIhOLdCi' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:35', 'f78aed67062910d63cc2d3631727f9495cde747f8717afed3a1a19f87953409a158b4fd221fba62e599287ac8622ee9102a99b123b3da0a3faaf7b23ffe93d75', '2012-08-31 12:43:35', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:35', 'testuser', 1, 'UE6dWkKO3GFfC6oqDOd', 'tP8Z9dPejKmaFYUBtlr', 'ac63adb9ce455879c9794bef77d7840269e9ff8c2dbf948c377477ca5f887342d4f439d494a60481cc8ec4b259220ed8cad271a4f4b8b0ad16c911755db41c0f', 'tkH0zQw1LzxIhOLdCi', 1, NULL, '2012-08-31 12:43:35')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:35', `current_login_at` = '2012-08-31 12:43:35', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = '94xMvbaoLT6XYYASKQQY', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = 'cpm3w0NJ0MpsOrCN', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.2ms | ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f53d4b007b2c474246f5586ba2ba4aca24bd68e8368808ad4c129577732d8079f1f01f591d247f243ead1c7560bdf001c4bc140997d46ad1b9230ee5b14224c1' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'SkZx4EM05e3FcqcTn6vu' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:35', '18c5f26ca8b8bb0ec5eaf81be64f0a8820a0c5401faa959b4a610c95d9141ac599ba8395e323b267c0a90608eb26331c1b58170fd4b2843329de2d285bf0334e', '2012-08-31 12:43:35', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:35', 'testuser', 1, 'MZWCBx2hrH7OurCphd', 'oRM701wmlzgvbuaCYbBt', 'f53d4b007b2c474246f5586ba2ba4aca24bd68e8368808ad4c129577732d8079f1f01f591d247f243ead1c7560bdf001c4bc140997d46ad1b9230ee5b14224c1', 'SkZx4EM05e3FcqcTn6vu', 1, NULL, '2012-08-31 12:43:35')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:35', `current_login_at` = '2012-08-31 12:43:35', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = 'gd18reGt8dRHbk9a5Ts4', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:43:35', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = 'k6yVJXcYsdfIZckClp3H', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '87bea970590bfccb51080a127ee79ea91a67b8e4114999f62e982ce29396bbf69394937623bc0c1db53878b852713665b24c3210e1892767aef3620207bb29bb' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '3Xai5VoIcNCdvGSi5zr4' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:35', '8ad11c3b428e8926eb80568bc4e891d7f507ece5f97ec74a067c87f724d228090300269e9b7f8d3a69cbcd5062c48df693d2dd47be291c94338fd4f343362534', '2012-08-31 12:43:35', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:35', 'testuser', 1, '6UtGhMdbcqBHP1f7o2Ss', 'gzp2aheMjzFV1Qer1lP9', '87bea970590bfccb51080a127ee79ea91a67b8e4114999f62e982ce29396bbf69394937623bc0c1db53878b852713665b24c3210e1892767aef3620207bb29bb', '3Xai5VoIcNCdvGSi5zr4', 1, NULL, '2012-08-31 12:43:35')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:35', `current_login_at` = '2012-08-31 12:43:35', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = 'OJUU2ffxb7ZFMrO7A1w8', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = 'OveNtTGG05sF9ZY3iad9', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 20ms (Views: 1.5ms | ActiveRecord: 2.4ms)  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '2c4bacddd221c4da38e3ed081a3fa0ba6cceac4a6b6f4eefba8999abc4e1501960da554e745b34ab86d9f9355d652ef49f20e653c3653d2a04e7d6d8b47aa4e3' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'cutpmavxI21qYqTDM7u4' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:35', '2e1b9231743a48d9c9c752c6b8684a904a79702104ee4aad538b1a95f2c0eb7524826a492df61a29b99870aaf89653d4d0291ba5bb57cf815d9c32f1eb5a8ec8', '2012-08-31 12:43:35', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:35', 'testuser', 1, '1gDbkQFvldmWTqyC1H3', 'U9kg1eJv3Vvd2PyfwxLl', '2c4bacddd221c4da38e3ed081a3fa0ba6cceac4a6b6f4eefba8999abc4e1501960da554e745b34ab86d9f9355d652ef49f20e653c3653d2a04e7d6d8b47aa4e3', 'cutpmavxI21qYqTDM7u4', 1, NULL, '2012-08-31 12:43:35')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:35', `current_login_at` = '2012-08-31 12:43:35', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = 'KxV6HNbUzJyTrkNCRuX', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:35', `perishable_token` = 'xJ8FLLvgdvvPVTnzaLZa', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'page9', 0, 0) SQL (0.1ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:43:35', NULL, NULL, 9, '2012-08-31 12:43:35')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 9 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 9 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:43:35', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:43:35', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 13) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:43:35', NULL, '2012-08-31 12:43:35', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_pages`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'permapage', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.1ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:43:35', NULL, '2012-08-31 12:43:35', 'permapage') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_pages`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:43:35', NULL, '2012-08-31 12:43:35', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:43:35', NULL, '2012-08-31 12:43:35', 'original') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:43:35' WHERE `spud_pages`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:35', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:43:35', 'test', 'Body', NULL, '2012-08-31 12:43:35') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:43:35', 'Template3', 'Body', NULL, '2012-08-31 12:43:35') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:35', NULL, 'html', 1, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:43:35', NULL, 'page10', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (1.9ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.4ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.7ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.8ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a570fc595ece52df73eec564383572d9725576f6658b7695fdc34291c7fee2462ef592520674b8ae81407819a73171d0565be1159a30cc75201d9ee99bf21d41' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '7J34qdp3eVBDEYvZSs9' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:59', '69505cdfba5c3e72d1e4a2a6d6bdf3755dd5aeea726bbae702c7ee0cf32fc11e9758cf1907e1735bc689d0a39f02853d1416592422580f5b1d9006198bdded09', '2012-08-31 12:43:59', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:59', 'testuser', 1, 'Z55D7YFatp0DpRDdJUvk', 'nF4TMdsIEhQhBunaev2Y', 'a570fc595ece52df73eec564383572d9725576f6658b7695fdc34291c7fee2462ef592520674b8ae81407819a73171d0565be1159a30cc75201d9ee99bf21d41', '7J34qdp3eVBDEYvZSs9', 1, NULL, '2012-08-31 12:43:59')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:59', `current_login_at` = '2012-08-31 12:43:59', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'WOoCgKgumAMgb8GikVK9', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.6ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'NuVhiftkzEEQDjpDXH56', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.4ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a934a14644ea6ffedd374a369a454d229511f6c9baaf0809d653aaab2db93409409824709c1b08f4f27a6a79a3e90c271542a5b5ca892b4b39f44865e619f7b7' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'PEtxEsmH9PQMueyDjDF2' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:59', '16557f501f55de6e6cb03ee7154666ef4c4da2d5db2cdeb55ec9cb6f58feae8aca3094d4b6c25b0afcce7ad63e587c9cb3ae68d3692398f505c97e5aeb4402a7', '2012-08-31 12:43:59', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:59', 'testuser', 1, 'Aoa2JrzJOA055xB9BU', 'CHte5qodrKFSywTXFNk', 'a934a14644ea6ffedd374a369a454d229511f6c9baaf0809d653aaab2db93409409824709c1b08f4f27a6a79a3e90c271542a5b5ca892b4b39f44865e619f7b7', 'PEtxEsmH9PQMueyDjDF2', 1, NULL, '2012-08-31 12:43:59')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:59', `current_login_at` = '2012-08-31 12:43:59', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'JlnsiF7H46y3mPiqOkb3', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:43:59', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'uWyuTPEwrjF2zkv9IaAh', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8c4d30e77fe34a94dcd4da124f3c6598a4000f77ec00e5cb0bf832abbe45fa388110fbea6b9e14461da7e8b985d3325a1be6ec5ad00a3dc4267e239b016852ed' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '4xjfPR2WyIpBBLc38g' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:59', '91648349c303b4ea0e4579370b5f54478b68f8e5d387623f89484533bebe419a691511bacbb4ff6fbef372a307f4c00b9b13afbdffd79b5e7c97f6ea6dc1d443', '2012-08-31 12:43:59', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:59', 'testuser', 1, 'Y32U07PEP7z3K3bpRxXu', 'DltEea4t1SDZnwOIC5r', '8c4d30e77fe34a94dcd4da124f3c6598a4000f77ec00e5cb0bf832abbe45fa388110fbea6b9e14461da7e8b985d3325a1be6ec5ad00a3dc4267e239b016852ed', '4xjfPR2WyIpBBLc38g', 1, NULL, '2012-08-31 12:43:59')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:59', `current_login_at` = '2012-08-31 12:43:59', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'yNHO6DirXx3e0WCmnet7', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'NNxwiBJNcyZaa8aMY7sk', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 22ms (Views: 1.5ms | ActiveRecord: 3.3ms)  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'dc3b25cdb8b5d671131a3e80ece1185b49ac6c938a9cf73813f30995df309f48daeaf88e27508a3c002174daf23480681f00fc76267b42907ea27582f35a3d39' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Ih9SctL3v7LtrAkVcpy' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:43:59', '4ad4566cf7adc44735138f4f5161746ddfc2cd37d6dcb1d142d5e047020ad13d1bbf34c117de5deaad03446bb42037df1b63058b83df23c72c4a28e28eeb20ba', '2012-08-31 12:43:59', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:43:59', 'testuser', 1, 'C98aMdjw5M3ac7Q0ugN', 'owfduFt7fMp0ZBoiwV', 'dc3b25cdb8b5d671131a3e80ece1185b49ac6c938a9cf73813f30995df309f48daeaf88e27508a3c002174daf23480681f00fc76267b42907ea27582f35a3d39', 'Ih9SctL3v7LtrAkVcpy', 1, NULL, '2012-08-31 12:43:59')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:43:59', `current_login_at` = '2012-08-31 12:43:59', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'Wz3WZeSBVE9bJWr8qvjS', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:43:59', `perishable_token` = 'd3rezyJjlAaLCMGNTra6', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'page9', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:43:59', NULL, NULL, 9, '2012-08-31 12:43:59')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 9 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 9 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:43:59', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:43:59', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 13) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'another', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:43:59', NULL, '2012-08-31 12:43:59', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_pages`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:43:59', NULL, '2012-08-31 12:43:59', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_pages`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:43:59', NULL, '2012-08-31 12:43:59', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:43:59', NULL, '2012-08-31 12:43:59', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:43:59' WHERE `spud_pages`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:43:59', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:43:59', 'test', 'Body', NULL, '2012-08-31 12:43:59') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:43:59', 'Template3', 'Body', NULL, '2012-08-31 12:43:59') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:43:59', NULL, 'html', 1, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:43:59', NULL, 'page10', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.5ms) TRUNCATE TABLE `spud_menus`;  (0.7ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.5ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4579d76de4b12a85c5af0f2edddf5c53e9262d6c5ac4e11e65567aa686f9b8b6d648b9a795df5e2f5ed478e4654cfe2222844a5fbfcbbe991594d4e10e1381bd' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'LxJ5YLpi3067Ni1JOTV' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:44:56', '70b928ff57b39d8c60cf7960840ed113061fcef1b1bbb88965d0c9f011dc5ea0d4408e0625c765a592eb11475741378c56de1a451b98a492575a5ba20b66b2df', '2012-08-31 12:44:56', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:44:56', 'testuser', 1, 'Io7QQ6hKABsx8AfNun', 'kXb2vdOTcP5skDMR3oJ', '4579d76de4b12a85c5af0f2edddf5c53e9262d6c5ac4e11e65567aa686f9b8b6d648b9a795df5e2f5ed478e4654cfe2222844a5fbfcbbe991594d4e10e1381bd', 'LxJ5YLpi3067Ni1JOTV', 1, NULL, '2012-08-31 12:44:56')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:44:56', `current_login_at` = '2012-08-31 12:44:56', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:44:56', `perishable_token` = '6vg7DXI8pOEmFm4longH', `updated_at` = '2012-08-31 12:44:56' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:56', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:56', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:56', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:56', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:44:56', `perishable_token` = 'LSazMT7iTWIG3Bcvzo0O', `updated_at` = '2012-08-31 12:44:56' WHERE `spud_users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 17ms (Views: 10.5ms | ActiveRecord: 0.9ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '67a1923d8f1613c0c45ae4095c0b2468737a56fa0e627388f20274d8ef765afbbecda63c5f2272746ce1dbf28b9703a0ba67a85a4d5c6468cc027f2441aac985' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'qKtFVfZlY3lYT6vGRTuj' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:44:56', '5680810aac2da479653037fbccbd63ff86703f93f70654ad8533c0ef807f53175228d602660c509ecb00b85d47fc5d57daf3e240084c54d37f9009b5b1829660', '2012-08-31 12:44:56', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:44:56', 'testuser', 1, 'R1q2xQYoUwoqpIgrQd6k', '7wHr7rdFZdhx1ZohM', '67a1923d8f1613c0c45ae4095c0b2468737a56fa0e627388f20274d8ef765afbbecda63c5f2272746ce1dbf28b9703a0ba67a85a4d5c6468cc027f2441aac985', 'qKtFVfZlY3lYT6vGRTuj', 1, NULL, '2012-08-31 12:44:56')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:44:56', `current_login_at` = '2012-08-31 12:44:56', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:44:56', `perishable_token` = 'mg8jAbptynbOLXHoOMyM', `updated_at` = '2012-08-31 12:44:56' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:44:57', NULL, 'page5', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:44:57', `perishable_token` = 'XZvBUqHQfLdjPHMiTquG', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.6ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a9311d0792220ace7231dadc70d6af44adfdb2dc199567b89d0d650be84d63678a64eb59ea885ee31fe1b0ae0ac1da09daec7958d6043ddbc2c779afb8bd26dd' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'fPzIPO3GW5As5srEW64' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:44:57', 'a88f939f40d211c2eab4d8d79fb15ad264baf20bec784095c4887359634ab683c981598012969965de57f2b5248dafd5c550361152a25ca513eb6a3996067150', '2012-08-31 12:44:57', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:44:57', 'testuser', 1, '3mXzheE2uif4OrcGdXb', 'GU609bRKpabO6zqi73e', 'a9311d0792220ace7231dadc70d6af44adfdb2dc199567b89d0d650be84d63678a64eb59ea885ee31fe1b0ae0ac1da09daec7958d6043ddbc2c779afb8bd26dd', 'fPzIPO3GW5As5srEW64', 1, NULL, '2012-08-31 12:44:57')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:44:57', `current_login_at` = '2012-08-31 12:44:57', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:44:57', `perishable_token` = 'woU5U8wzBsqYy1VQEr', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'page6', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:44:57', `perishable_token` = 'XWOQLWbsAUhGOnRovnsp', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_users`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 21ms (Views: 1.5ms | ActiveRecord: 3.1ms)  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '22fe418bd4b8423109c85368cca888ba5f3e543f203b8f5d495d72de525ea3261763d007e250e8ec93da07096aae14d991d0512925ccb4bf491c773a647c86c5' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'BW6Pmzn7OAsXr0guMvHs' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:44:57', 'c8a09685d8a73a7a65939b37038388cb97db5c31b118882d26fa66a5f5155cdfbfc7adb20db25d72d144869fc95879f9326ce16cd53e4debed296d4927239ba8', '2012-08-31 12:44:57', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:44:57', 'testuser', 1, '65x8iJaaVO8wLrhSV', 'Wg0qRWF9L1VUQLQuZLq', '22fe418bd4b8423109c85368cca888ba5f3e543f203b8f5d495d72de525ea3261763d007e250e8ec93da07096aae14d991d0512925ccb4bf491c773a647c86c5', 'BW6Pmzn7OAsXr0guMvHs', 1, NULL, '2012-08-31 12:44:57')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:44:57', `current_login_at` = '2012-08-31 12:44:57', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:44:57', `perishable_token` = 'iOCNTFVOUPVN8lUdSZ2Z', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:44:57', `perishable_token` = 'Cv4UR7ERFWBoWQrtKQg', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'page9', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:44:57', NULL, NULL, 9, '2012-08-31 12:44:57')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 9 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 9 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:44:57', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:44:57', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (30.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 13) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.5ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:44:57', NULL, '2012-08-31 12:44:57', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_pages`.`id` = 15  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:44:57', NULL, '2012-08-31 12:44:57', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_pages`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:44:57', NULL, '2012-08-31 12:44:57', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:44:57', NULL, '2012-08-31 12:44:57', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:44:57' WHERE `spud_pages`.`id` = 18  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:44:57', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:44:57', 'test', 'Body', NULL, '2012-08-31 12:44:57') SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:44:57', 'Template3', 'Body', NULL, '2012-08-31 12:44:57') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:44:57', NULL, 'html', 1, NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, 2, '2012-08-31 12:44:57', NULL, 'page10', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.5ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.9ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.0ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.6ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f8c27dfddffe8fe9dd250194acdd3d38b86891aada1dc631a1f0fca07b424faa47b5e22d4ee9a1c5671bcffa074d6364741cc262c200df082b4c5b2d63a94957' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'j71ke8l5CLDZaoH70nuH' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:08', 'c46e8be9e85cf55ef22fcd1d978179e9ffe9638ce0ff527ada50d18250d66cea7267e499ce169a9cec95917831376fda62119a5b358f18bdf0a011c4055eba4f', '2012-08-31 12:46:08', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:08', 'testuser', 1, 'xVAw62aZZbd7j48sqEls', '8mCZZHD7xf6IlfEKLqxT', 'f8c27dfddffe8fe9dd250194acdd3d38b86891aada1dc631a1f0fca07b424faa47b5e22d4ee9a1c5671bcffa074d6364741cc262c200df082b4c5b2d63a94957', 'j71ke8l5CLDZaoH70nuH', 1, NULL, '2012-08-31 12:46:08')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.4ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:08', `current_login_at` = '2012-08-31 12:46:08', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:08', `perishable_token` = 'i8WTKJQE7ipvO6pKMYdZ', `updated_at` = '2012-08-31 12:46:08' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:08', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:08', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = 'VRRHcpOKfGUDESLueKKz', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '564cbb4455171d92332ae9da55645dc5a6d88d382d600fe449f7cee49d627cdc0d68bb867b886ed44127253427cd7b013baadb50e5d898bc6144bbc071900935' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'bmfvNZeAvFlYEGlS2c1r' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:09', '59feae57e1e93817788c29e30531f6e4c61338ce63e6551ac8ae083995410daeb4a94f6f14df1b271ff3c977233ba8d1145d73449777b871c4b434aa6628e8e0', '2012-08-31 12:46:09', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:09', 'testuser', 1, '7PTKURtpxpdfIhD1Ij7', 'iqnCcl1s1pmQeCLtGu8X', '564cbb4455171d92332ae9da55645dc5a6d88d382d600fe449f7cee49d627cdc0d68bb867b886ed44127253427cd7b013baadb50e5d898bc6144bbc071900935', 'bmfvNZeAvFlYEGlS2c1r', 1, NULL, '2012-08-31 12:46:09')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:09', `current_login_at` = '2012-08-31 12:46:09', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = 'lzScFUy5n1lGWlaHWUd', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:46:09', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = 'f6IXCj2bhqi4gbxy', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.9ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '429180c4dcffe4ed1719f59faac69d1c9c7e698ce0df2da61dd16a0eaeea9c3ca2d40522951132089b2091c8c1fd3c5f4902fa5a292f34ac25b529e1e3b8ac1a' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ppdOKNFXb34E7yIxIIDP' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:09', '0d78d2c1b3f8a0f39301d4031399b7e85390239551c55c889258e70fe50a7d060d640f608cea2ab0c7d70661feac1a17081c9179bda66f645c27d814c058b8b8', '2012-08-31 12:46:09', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:09', 'testuser', 1, 'YsAYq0yucLID60cElhBL', 'f52N12J5aXglsbEHYQl2', '429180c4dcffe4ed1719f59faac69d1c9c7e698ce0df2da61dd16a0eaeea9c3ca2d40522951132089b2091c8c1fd3c5f4902fa5a292f34ac25b529e1e3b8ac1a', 'ppdOKNFXb34E7yIxIIDP', 1, NULL, '2012-08-31 12:46:09')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:09', `current_login_at` = '2012-08-31 12:46:09', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = 'qOM27kBCSulUED9w6Mzj', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (27.6ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = '96j0f0m8hEO2mmn3Nx21', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 22ms (Views: 1.6ms | ActiveRecord: 3.0ms)  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f27569102c54a01d7a97e14ab5a132f673e31b016fceac57fa3a5000d0f8f05fd102116426112daffddbe41c940887f4902949c4d07ad7276bbdfe8bc00e9f7e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'AlZTMA5M3RpbWa9MWQJM' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:09', '95e59430bbde90ce8d7dda35b74e514d1f674d3908442dc1d7c74fab1e5b74f64686a0cba57f6362411cddc98f563187ed1d3a56e1bd21a07ad0c7c92a3623b6', '2012-08-31 12:46:09', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:09', 'testuser', 1, 'or28kBljlvf38LxVUHbt', 'Cf6BT7juWhPZ2xAIqbSH', 'f27569102c54a01d7a97e14ab5a132f673e31b016fceac57fa3a5000d0f8f05fd102116426112daffddbe41c940887f4902949c4d07ad7276bbdfe8bc00e9f7e', 'AlZTMA5M3RpbWa9MWQJM', 1, NULL, '2012-08-31 12:46:09')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:09', `current_login_at` = '2012-08-31 12:46:09', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = '8EO3GHHx0BY1h5jth8Td', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:46:09', 'Template1', 'Body', NULL, '2012-08-31 12:46:09') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '9f7ec3036c4bc57b24605d11c06858c39ebada524d6d869254b792788e46b9b2815412f1ac93a39690e26fc738d7309c5095cf7467f83bff35611de23c0beef2' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '6QWRfqmrY4GW4z1Tmrak' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:09', 'abfb86c10d83fb1c800772e612e95cf8d07110a41479cd3beac0890a1dad4b7d4ee83c713aa70f388d6fcd9abb685d5894793545419459e1e98111c7ae7d230c', '2012-08-31 12:46:09', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:09', 'testuser', 1, '9fZLin1t2N70NYij3Du', 'Dwujx0HNZNjomsQE5m', '9f7ec3036c4bc57b24605d11c06858c39ebada524d6d869254b792788e46b9b2815412f1ac93a39690e26fc738d7309c5095cf7467f83bff35611de23c0beef2', '6QWRfqmrY4GW4z1Tmrak', 1, NULL, '2012-08-31 12:46:09')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:09', `current_login_at` = '2012-08-31 12:46:09', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = '39RE9smK0r0wojS9YCHX', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:09', `perishable_token` = '3V2i4Snw9SltbXtGRoPj', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'page10', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:46:09', NULL, NULL, 9, '2012-08-31 12:46:09')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 9 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 9 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:46:09', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 10) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 10, NULL, '2012-08-31 12:46:09', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 13) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 15) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (15, 'SpudPage', '2012-08-31 12:46:09', NULL, '2012-08-31 12:46:09', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 15 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_pages`.`id` = 15  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 15 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:46:09', NULL, '2012-08-31 12:46:09', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_pages`.`id` = 16  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:46:09', NULL, '2012-08-31 12:46:09', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 16 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:46:09', NULL, '2012-08-31 12:46:09', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:46:09' WHERE `spud_pages`.`id` = 18  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:09', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:46:09', 'test', 'Body', NULL, '2012-08-31 12:46:09') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:46:09', 'Template4', 'Body', NULL, '2012-08-31 12:46:09') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:09', NULL, 'html', 1, NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:46:09', NULL, 'page11', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) SELECT DATABASE() as db  (2.3ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (0.7ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.6ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'ab5ff4317ca91941ae32380c2d8b90cfb023f03f564fb5676629c94a942fd0eb11308a11da8fd4567e761db2f3a4ea515994b9ebd7040fda96bfa1343e50ab00' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'idPa2UwJKdgdXFBhT39r' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:41', '4928f5e622ee7f8388f39885159482f5d37536598764a6b8c2874fef92abca584bc5fdd74c01639e777de42e4ea43060b4940b04a9215d10e3cefd6166b82b18', '2012-08-31 12:46:41', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:41', 'testuser', 1, 'L3wjyQfcWFSkunpX1ek', 'M0puSUVIPrqzsqtE0xr', 'ab5ff4317ca91941ae32380c2d8b90cfb023f03f564fb5676629c94a942fd0eb11308a11da8fd4567e761db2f3a4ea515994b9ebd7040fda96bfa1343e50ab00', 'idPa2UwJKdgdXFBhT39r', 1, NULL, '2012-08-31 12:46:41')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:41', `current_login_at` = '2012-08-31 12:46:41', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'bm6vfAKTvhZpJeeV9pI', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'page2', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'vmXajapodPSVJnR36wB', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 0.9ms)  (0.4ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a77bd20da2af76b0b449880b9e3b5faaba410b2d70ac199ba797890455154183334bc449fd70684532c16665ae4d28de600091f32906bfea9a1df4eaac0eb821' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'YLqYPlQWKd7vyjxfgT2' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:41', '74e2449e2657d877b5c6ae48a145dd503da872104450ee852deb3640efe99da963f5fb36fa228b29eb93b3ad74ea21228c27add25fc7d60c02712aa0aa0a3661', '2012-08-31 12:46:41', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:41', 'testuser', 1, 'faYnOrXSoMWqCkQ6rZcI', 'IF39V2ER38qkfwyGB5qc', 'a77bd20da2af76b0b449880b9e3b5faaba410b2d70ac199ba797890455154183334bc449fd70684532c16665ae4d28de600091f32906bfea9a1df4eaac0eb821', 'YLqYPlQWKd7vyjxfgT2', 1, NULL, '2012-08-31 12:46:41')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:41', `current_login_at` = '2012-08-31 12:46:41', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'Nhtv64RkkAYpwsF6nZ', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:46:41', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'T1ZxkcsJp0Uujj7lEonS', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'dc74b394e7d4d05454524ebfd962386f09757814a3e7491bf6f0b350f80b6c9d11fd60725acf3dacb76d613e80bb4807f541daac2861ebe51ff4b6982888acc2' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'JQ1OjO6MlRcgtTQt6rRx' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:41', 'b2c92f885e5b7e67b827463865b19d54e29f36729a4fb3379fb7fc990182cbcaff0cc578ab89b819b366ae7e6eed5cc147b9661131b71e10e3fe6a0e99caa22f', '2012-08-31 12:46:41', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:41', 'testuser', 1, 'fhvEEhDTtlrjiEgtaDe', 'gXKAeKX0fpopENpfBTik', 'dc74b394e7d4d05454524ebfd962386f09757814a3e7491bf6f0b350f80b6c9d11fd60725acf3dacb76d613e80bb4807f541daac2861ebe51ff4b6982888acc2', 'JQ1OjO6MlRcgtTQt6rRx', 1, NULL, '2012-08-31 12:46:41')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:41', `current_login_at` = '2012-08-31 12:46:41', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'K7Yp6zCQerFm5CZmd1O', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (28.6ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'aJ8bYRNAbKCgMFjIVdxM', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 20ms (Views: 1.5ms | ActiveRecord: 2.7ms)  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '51235304252745a75e83fcd73a4535d857fce008c9d61a56c15e88f52c81337d3bdebaa609b58404d82e1181cdc964f2774da9399cb2c06630de747276a66afb' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'wyWYWks92eco2CdhMc5D' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:41', '297da077774f26497cab755d1d3681739d68056248700ed1aff0880d6c913bce66b5f5c152299e6884ee77275d1c1b764631007bfcd5a169313587427e6c3108', '2012-08-31 12:46:41', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:41', 'testuser', 1, 'olnc0G5XH21VESAm93I8', 'z3t84B1sl84LVoGrDEJ', '51235304252745a75e83fcd73a4535d857fce008c9d61a56c15e88f52c81337d3bdebaa609b58404d82e1181cdc964f2774da9399cb2c06630de747276a66afb', 'wyWYWks92eco2CdhMc5D', 1, NULL, '2012-08-31 12:46:41')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:41', `current_login_at` = '2012-08-31 12:46:41', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'JCcaRQGm7GJy09IcTJfi', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:46:41', 'Template1', 'Body', NULL, '2012-08-31 12:46:41') SpudPage Load (0.5ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 12:46:41', NULL, 'page7', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'yXniwikyXy0raoLk6Iz', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.3ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 17ms  (0.8ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1db859b81fa46eaf0dc6d3767d2fab32c41cab08f2ecdcd0e17f6728859ff69329f1ec0995264d53499ea5b729a0f586ab7797e34b7584e738ccadea94052a57' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '56LyAuB1JHdndg5fW4D' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:46:41', '5103a1ecb6cfb6b483f4f7516f1dfce6d0a2c20222438012ea3eb500d5f217130dd8bd1756475f6fdb787e62df7f7ecf916459983a4026de27c0e1fce7d0c5b7', '2012-08-31 12:46:41', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:46:41', 'testuser', 1, '1rcGJTBGLogUzDx1G4gl', '7spG6aR7UvrvwCA8wCeH', '1db859b81fa46eaf0dc6d3767d2fab32c41cab08f2ecdcd0e17f6728859ff69329f1ec0995264d53499ea5b729a0f586ab7797e34b7584e738ccadea94052a57', '56LyAuB1JHdndg5fW4D', 1, NULL, '2012-08-31 12:46:41')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:46:41', `current_login_at` = '2012-08-31 12:46:41', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'T9djvS7R5H4iYNCSE4w', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:46:41', `perishable_token` = 'RS0JmpCtFt19jXOTpL0u', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.6ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 38ms (Views: 35.7ms | ActiveRecord: 0.6ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'page10', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:46:41', NULL, NULL, 10, '2012-08-31 12:46:41')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 10 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 11) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 11, NULL, '2012-08-31 12:46:41', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 11) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 11, NULL, '2012-08-31 12:46:41', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 14) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:46:41', NULL, '2012-08-31 12:46:41', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_pages`.`id` = 16  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:41', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:41', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 17) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (17, 'SpudPage', '2012-08-31 12:46:41', NULL, '2012-08-31 12:46:41', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:46:41' WHERE `spud_pages`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 17 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 17) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 17 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (17, 'SpudPage', '2012-08-31 12:46:42', NULL, '2012-08-31 12:46:42', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 17 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:42', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:42', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:42', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:42', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 19) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (19, 'SpudPage', '2012-08-31 12:46:42', NULL, '2012-08-31 12:46:42', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:46:42' WHERE `spud_pages`.`id` = 19  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:42', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:46:42', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 20 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:46:42', 'test', 'Body', NULL, '2012-08-31 12:46:42') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:46:42', 'Template4', 'Body', NULL, '2012-08-31 12:46:42') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:46:42', NULL, 'html', 1, NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:46:42', NULL, 'page11', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.9ms) TRUNCATE TABLE `spud_menus`;  (0.9ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.9ms) TRUNCATE TABLE `spud_page_partials`;  (1.1ms) TRUNCATE TABLE `spud_pages`;  (1.0ms) TRUNCATE TABLE `spud_permalinks`;  (1.0ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (1.3ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1d7142b54c4cd284590bfc989b3cc452c35378f060266cf05b846fd6e294c7644d6457bb6576b514405a25471bbd4823bc5ec7d2c3c56917ff29c49effb09a9d' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'X1JiCHPBGHNKsYijjUvF' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:47:07', '6807bfac783d8c35d1d2ff7e68bb0f36be25437127e510ff34b6d0f1720aee508838c289c502496d95dc293982029a001ee7bd732c29acf2ce639fe0d85a0ee3', '2012-08-31 12:47:07', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:47:07', 'testuser', 1, 'urB8i6vyU4dcIfEU3VB', 'rj3H3JSQ0eaAjFHKe1fL', '1d7142b54c4cd284590bfc989b3cc452c35378f060266cf05b846fd6e294c7644d6457bb6576b514405a25471bbd4823bc5ec7d2c3c56917ff29c49effb09a9d', 'X1JiCHPBGHNKsYijjUvF', 1, NULL, '2012-08-31 12:47:07')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:47:07', `current_login_at` = '2012-08-31 12:47:07', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'ofxJnks2xW0QCUKD8tq8', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:07', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:07', NULL, 'page2', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = '6IZ5skjJB6wKIfgtzP1H', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 15ms (Views: 8.8ms | ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '369196cb9d637f7089264faa902918c50096fbc532477334d16a9f0bd93f67a2d2eb2fb4b02c12aab4b6b572cd78287ec8c0ad5dd9c93bff0ecb08bdb61acd8a' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'HTUUJBfPZ67hW0TdWneA' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:47:07', '9a016712991d506df8ff8d1d244ac16c3f3eb155d9a5a9d037a4e527949fa4fa407435975807bdf613a24d352050da9d2960b9acae890df15eec732fe5437887', '2012-08-31 12:47:07', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:47:07', 'testuser', 1, 'us2Yfs8ugob5hrgXADBn', 'xP6aMlibTRwiCMpkyUxx', '369196cb9d637f7089264faa902918c50096fbc532477334d16a9f0bd93f67a2d2eb2fb4b02c12aab4b6b572cd78287ec8c0ad5dd9c93bff0ecb08bdb61acd8a', 'HTUUJBfPZ67hW0TdWneA', 1, NULL, '2012-08-31 12:47:07')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:47:07', `current_login_at` = '2012-08-31 12:47:07', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'NNkK50kByHCUBbXvTqI', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:07', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:07', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:47:07', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'Ql0yesL39jkJCNyCF', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '429b53083a414b8e964ad9b59429942acc157604f553c8459eaffe60dbd9e6197cef2807a33c8516a80db2a93e5856fc0399dc19426f24f7a6f242d8d91a32f1' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'VpD43UwN2DVS4vmcP7m' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:47:07', '1019dc9255cb6a901b00f3c108826e041049a4bbf6fb10a406024b69ce46defbe6fbd2322141677271b8f6c823e72c8c8504fae3e7bb1a8dcc5fb9bccacf9e8c', '2012-08-31 12:47:07', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:47:07', 'testuser', 1, 'qLtTymIvzTjCI2nNhoi', 'nzrVec50rnG4EjX6TH', '429b53083a414b8e964ad9b59429942acc157604f553c8459eaffe60dbd9e6197cef2807a33c8516a80db2a93e5856fc0399dc19426f24f7a6f242d8d91a32f1', 'VpD43UwN2DVS4vmcP7m', 1, NULL, '2012-08-31 12:47:07')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:47:07', `current_login_at` = '2012-08-31 12:47:07', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'QBgCKIbbPqAExqGI8W6X', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (27.9ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:07', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'QMoR1GYYB0JbHhr5PCb', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 22ms (Views: 1.6ms | ActiveRecord: 3.3ms)  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5446e3dedc790ab1390b3aa75688992f1d06499e54d8576f88c0456e0a58a8b6e45bbc864fc0932e7542d87cff800138da25a83addb6bbf6216e42edabaddb81' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ZH1GcP90ThPJSroHtjWn' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:47:07', '5227696fccdca52dc1e349266ec2ad8c88b485ff07740bcb69eb9c42b5e5e80da804e3ae3dbfeeb7443d799ba263c5eb117e0ed3ad9709225cc8d9fe7d6dacba', '2012-08-31 12:47:07', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:47:07', 'testuser', 1, 'a14GbmgXNMngGkh57qOk', '2MiVBGrTzbHK6k374zZu', '5446e3dedc790ab1390b3aa75688992f1d06499e54d8576f88c0456e0a58a8b6e45bbc864fc0932e7542d87cff800138da25a83addb6bbf6216e42edabaddb81', 'ZH1GcP90ThPJSroHtjWn', 1, NULL, '2012-08-31 12:47:07')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:47:07', `current_login_at` = '2012-08-31 12:47:07', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'EhgHszDndzhtxOh9uAf', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:47:07', 'Template1', 'Body', NULL, '2012-08-31 12:47:07') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 12:47:07', NULL, 'page7', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'qnxRXHOlH2GHYS92JYbj', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.4ms)  (2.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'eaedd2144faafd72ed0ee1fce77e633bd19b9a537af3ab519d0ee7b18446a68407d242c1e0fd1ae26f47c6eb227fb14c46c496d5eb0356168dda28adce4e5890' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'U5mqs0GSau9QOydOQmf' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:47:07', 'aa39e4f89c9ad0ca12703c2d611d28a9518f8d3781b9074359f04d07857e5686d73a0d27fddbea722a09d37d28c248eff99bcaaf405da1ca78b25fe08d3c43bf', '2012-08-31 12:47:07', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:47:07', 'testuser', 1, 'ZJww57c7uz3kXbhAKiZN', 'eFDQsKFBjywh9Svn89x9', 'eaedd2144faafd72ed0ee1fce77e633bd19b9a537af3ab519d0ee7b18446a68407d242c1e0fd1ae26f47c6eb227fb14c46c496d5eb0356168dda28adce4e5890', 'U5mqs0GSau9QOydOQmf', 1, NULL, '2012-08-31 12:47:07')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:47:07', `current_login_at` = '2012-08-31 12:47:07', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'UsSpxyo8uIFNgXSWGq7S', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:47:07', `perishable_token` = 'GOKRMhdsTMb8p0WON5YL', `updated_at` = '2012-08-31 12:47:07' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.4ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:07', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:07', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:07', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (29.6ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'page10', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:47:08', NULL, NULL, 10, '2012-08-31 12:47:08')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 10 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 10 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.3ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 11) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 11, NULL, '2012-08-31 12:47:08', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 11) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 11, NULL, '2012-08-31 12:47:08', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 14) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 16) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (16, 'SpudPage', '2012-08-31 12:47:08', NULL, '2012-08-31 12:47:08', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 16 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:47:08' WHERE `spud_pages`.`id` = 16  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 16 LIMIT 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 17) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (17, 'SpudPage', '2012-08-31 12:47:08', NULL, '2012-08-31 12:47:08', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:47:08' WHERE `spud_pages`.`id` = 17  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 17 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 17) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 17 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (17, 'SpudPage', '2012-08-31 12:47:08', NULL, '2012-08-31 12:47:08', 'permapage-new')  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 17 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 19) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (19, 'SpudPage', '2012-08-31 12:47:08', NULL, '2012-08-31 12:47:08', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:47:08' WHERE `spud_pages`.`id` = 19  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:47:08', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 20 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:47:08', 'test', 'Body', NULL, '2012-08-31 12:47:08') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:47:08', 'Template4', 'Body', NULL, '2012-08-31 12:47:08') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:47:08', NULL, 'html', 1, NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:47:08', NULL, 'page11', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.5ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.3ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.2ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.5ms) TRUNCATE TABLE `spud_user_settings`;  (1.5ms) TRUNCATE TABLE `spud_users`;  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.5ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '7852b9383555aae8ad8934157302b0351897429ba8f4ec284de433ff1b9de2640ff62147d9db09826cbca6ca11693f9895058c7e04029d4efb674e991bb4d738' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'EFLLsV0annUZZPuJAtH' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', '30c16142f15e54dce20c4d992eb48dc8b3f6e90060130699b36add789282d23ca9990f29fd43b393e95bbff9092a10248c1a676bd5f0aa8c0a6d5f0a5ed84796', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, 'NquslwcBck8n2JwKHz1', 'CO16l8hT09hKZvhhu3', '7852b9383555aae8ad8934157302b0351897429ba8f4ec284de433ff1b9de2640ff62147d9db09826cbca6ca11693f9895058c7e04029d4efb674e991bb4d738', 'EFLLsV0annUZZPuJAtH', 1, NULL, '2012-08-31 12:49:39')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'yxWAUmvvei9WcqHGn25D', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'kBoHRKBzjwGduKAGcBg', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 0.9ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '6f1d89d3bc070730a2df2ee65cbef0154143a285925b7d446778b61ba4e9df1523dfc87a1df5b5e3245f71c10703b0607abf64436b8c538d7e606708eb486922' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Fmr7oVga4YhyE73htfto' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', '23bedcf1ea1bcc87a21388a88918082125f0c3a71d53382f0ab2d292491b55edcb500cce904c3ba76ad24c7b1128acc72479118a7ce6d5f55052424e5dc8a695', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, 'XyH0CoXBQnXwdDz5U', 'uqNQF1O7wgH5E8btD7c', '6f1d89d3bc070730a2df2ee65cbef0154143a285925b7d446778b61ba4e9df1523dfc87a1df5b5e3245f71c10703b0607abf64436b8c538d7e606708eb486922', 'Fmr7oVga4YhyE73htfto', 1, NULL, '2012-08-31 12:49:39')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = '07Hiylw9r52Aqq7hH6L', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:49:39', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.5ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'IpdHnH1qroNe3iaRIA', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '14896329decc015c34b5ede9c25158910fb231e7f03cf4d48c389b6533b6308fa0e27666198575fee6154e356b1ed74438bfd48d75e81cb47bc0e2b318002fbb' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'rDzYQTRuBN9MPZHfbpM' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', '07ce15ed017c114432bef31c71b957d3b5b4fa5e686b31da39e54eda5dca48229991c71c599b8dda3f5bdaa1be515364de1c70cbfa0bc64c7cc5e120422ca1ca', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, '8RAUkFjSxYwqIyNKpRH', 'aOx2KOzxAj29x8PE2KsZ', '14896329decc015c34b5ede9c25158910fb231e7f03cf4d48c389b6533b6308fa0e27666198575fee6154e356b1ed74438bfd48d75e81cb47bc0e2b318002fbb', 'rDzYQTRuBN9MPZHfbpM', 1, NULL, '2012-08-31 12:49:39')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'yyv0wCGXmXi67XArEebi', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'page6', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'TNWLTl7X8iweSuvv1FN', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 21ms (Views: 1.5ms | ActiveRecord: 2.7ms)  (1.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '56e056b4688dcd883b986bd6c9c27a2010e2060960bd493293e288c1fdc371fee279336bc957118803e428138d7a5a38bc879d83557b751803dfac19f7c56b94' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'BbqAruInRxu47ImCW0O' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', 'f98f5c5e613f76fdfc48e1d9815f9a8030eeecc90d1212405a250f7c79818d623eb2520e8a771c323b24e0aa71ec46e58961baef2b9d8e0e3ad26a86596ba9f6', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, 'bhgCDoGl8qTuNG18Ooe', 'dyRoLoFl0JQTGbiFjYcj', '56e056b4688dcd883b986bd6c9c27a2010e2060960bd493293e288c1fdc371fee279336bc957118803e428138d7a5a38bc879d83557b751803dfac19f7c56b94', 'BbqAruInRxu47ImCW0O', 1, NULL, '2012-08-31 12:49:39')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'ZPG8i2XWhEMttGA9SOBP', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:49:39', 'Template1', 'Body', NULL, '2012-08-31 12:49:39') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 12:49:39', NULL, 'page7', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'WrWBbXkm0i47G8Ciumhj', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.0ms)  (2.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f90e9dbc9ff5a5ce44a91f36d8e95d9483b9b4bfd2c16a72e89b20f472fea73d8b070f68eadb39edae359d8483d6147c605828dafd3df5de22c77d2060043c0e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'NgLenRViYZiUnz4RaIQL' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', '52966dd699532060760d3084ebc5cf53309e7ed99e62a7014c783d7a25c3df28d69aac35509235c1916311d89da30701c770d82e955bbd05b7fb31f715a6f138', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, 'SdZm6kI5TyQsoXSdZLAG', 'OljouHi7Jkq0SuMQCUrM', 'f90e9dbc9ff5a5ce44a91f36d8e95d9483b9b4bfd2c16a72e89b20f472fea73d8b070f68eadb39edae359d8483d6147c605828dafd3df5de22c77d2060043c0e', 'NgLenRViYZiUnz4RaIQL', 1, NULL, '2012-08-31 12:49:39')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'd80JHFB5EfiFYMr5dTt', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'RhDquwn6HhXRqaCrepjx', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3aef6cba5955e20601e9340f71d5369319175a0d4ed6f40912c5a6ecfd41032a8608f626b657abcb738a455129a12bc8a868bc42d0c597aef0eda0d75ad8d739' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Ki9x4dEjOLnjKECUkHt' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', 'ddf1b33b538cd813461a332986ce9f1a914af9b716b99b2bc9a962fda6c9d1ce3b9e504e0fac5619c282b09e6e5ba8d2e60c2c595fe4006a01ca380c9cafef9f', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, 'qVJEDN4escJwV1LsWAA', 'taqES0EyffyS2Iv38pR1', '3aef6cba5955e20601e9340f71d5369319175a0d4ed6f40912c5a6ecfd41032a8608f626b657abcb738a455129a12bc8a868bc42d0c597aef0eda0d75ad8d739', 'Ki9x4dEjOLnjKECUkHt', 1, NULL, '2012-08-31 12:49:39')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'o8tdFQ670EhbZ3VJ2nJk', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'C7u2Xr55vqm0lPYDpGR', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates`  Completed 200 OK in 13ms (Views: 1.8ms | ActiveRecord: 0.9ms)  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '770fadcbf67e2788fafdf668443c99fec0ea8b2652565a7ae888cd95a8d2d51b8cbb74a83c2e70c40c417931a6aa484f5adb567f591cf950e26e360a7aae559d' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'o9HiQjbcVikoRtHSA90R' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', 'a0e461f3e7e0987dd59716060f98c428d1b66a20314742a7357119ae30ec1dd3211d7103245b178ee00ccd0536797a465a4a6b14aab2c9330737f2ef8fb3ae52', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, 'FmhKazbo5Lw7f6A8TwU', 'mFHO3R2D7FKedP5a24Z', '770fadcbf67e2788fafdf668443c99fec0ea8b2652565a7ae888cd95a8d2d51b8cbb74a83c2e70c40c417931a6aa484f5adb567f591cf950e26e360a7aae559d', 'o9HiQjbcVikoRtHSA90R', 1, NULL, '2012-08-31 12:49:39')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'PystCmj6mHwXjtUxpld', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'P5VNsSmDzYw7TCsDiGp4', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '76e0cc1c08b0f4f98fd7e465221091d7bf82cb0d94a559913779d39d0d231daf9de9db5003e158e807a3d21af63fdbaa97d727ceb3497a94dd6849f138d7f3c1' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'aM2xYaWTfEUclygQyQ4' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:49:39', '2e11edf31c6dbfe945611f50005f3348d47710c13a79faf8b545e13124b9f40db915ad262a098e127d9b53b385d686609263d26d827249ff14f69faad0c47532', '2012-08-31 12:49:39', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:49:39', 'testuser', 1, 'oon61XDMMhfkD2mC6Hs9', 'Uyla7SNpuofI3qpGhWM', '76e0cc1c08b0f4f98fd7e465221091d7bf82cb0d94a559913779d39d0d231daf9de9db5003e158e807a3d21af63fdbaa97d727ceb3497a94dd6849f138d7f3c1', 'aM2xYaWTfEUclygQyQ4', 1, NULL, '2012-08-31 12:49:39')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:49:39', `current_login_at` = '2012-08-31 12:49:39', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'XSMZlGCxY2quvDHY8tVi', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'page8', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#edit as HTML Parameters: {"id"=>"8"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:49:39', `perishable_token` = 'cH4upqTDa97NcUEKdVMI', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_users`.`id` = 8  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 8 LIMIT 1 SpudPagePartial Load (0.4ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (8) SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 39ms (Views: 1.8ms | ActiveRecord: 1.3ms)  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.3ms) SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.5ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'page11', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:49:39', NULL, NULL, 11, '2012-08-31 12:49:39')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 11 SQL (0.2ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 11 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 12) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 12, NULL, '2012-08-31 12:49:39', NULL, 'parent/page-1', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 12) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 12, NULL, '2012-08-31 12:49:39', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 15) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 17) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (17, 'SpudPage', '2012-08-31 12:49:39', NULL, '2012-08-31 12:49:39', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 17 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_pages`.`id` = 17  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 17 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:49:39', NULL, '2012-08-31 12:49:39', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_pages`.`id` = 18  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 18 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 18) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 18 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (18, 'SpudPage', '2012-08-31 12:49:39', NULL, '2012-08-31 12:49:39', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 18 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 18 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 20) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (20, 'SpudPage', '2012-08-31 12:49:39', NULL, '2012-08-31 12:49:39', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:49:39' WHERE `spud_pages`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:49:39', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 21 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 20 LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:49:39', 'test', 'Body', NULL, '2012-08-31 12:49:39') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:49:39', 'Template4', 'Body', NULL, '2012-08-31 12:49:39') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page12' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page12' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:49:39', NULL, 'html', 1, NULL, NULL, 'Page12', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:49:39', NULL, 'page12', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.1ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.0ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.0ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.7ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.5ms) TRUNCATE TABLE `spud_page_partials`;  (0.8ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.7ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.3ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5e4e9203cb107248e00934295befbbd679e3cf686f2927b0db25ff5d91bfa0ae48f6cd7a0d3044043739c96600ea1609ccffa613a4de985ca68938e8509f9116' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'i0L0XyminSif8TRC5KP6' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', '55963aa2bb8fb6e387d17a1ca3a7fa99a799a6c2d4b9ec5b80c2e158b29bfc278a3dd64befa46a203090b3ee5573614aa95b5b83564ffdec7508d6fc3343ac82', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'hCppLMIalbIjZG8zJzc', '6ggds23a8r2zHf2pQ9ZE', '5e4e9203cb107248e00934295befbbd679e3cf686f2927b0db25ff5d91bfa0ae48f6cd7a0d3044043739c96600ea1609ccffa613a4de985ca68938e8509f9116', 'i0L0XyminSif8TRC5KP6', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = '7AueaMWL5K1ZlBAvjOw', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'UiphyQGeQf2z3yo2tuEJ', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.5ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e545e87fe219ab3b024c735095450e24796031d39b65001615298ac888ff7a826c448c20472bdd73fae4fb2d34927816bbb171ec216d04982e7d5811c3d120f1' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'raqC5riiT7wUr97n6Wko' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'f1a49b57e14245729975ea823fa72c6bcfa0819520141175ae3a8a1daa8faa3f5adfba95743838c811244f2b6b8dd5532ef6efb2d69dc0241b4d60761d4d8567', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, '8uxai3Gcqiud0I26CT', 'crSmEcNCNqT5P6kGEAkK', 'e545e87fe219ab3b024c735095450e24796031d39b65001615298ac888ff7a826c448c20472bdd73fae4fb2d34927816bbb171ec216d04982e7d5811c3d120f1', 'raqC5riiT7wUr97n6Wko', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'SwO7bt4Phm8FQUN2Ekc', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:52:24', NULL, 'page5', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'Y1nYP3lhXdTHC27W4Q', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.5ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '7e1fc5dcb98128bbd694bdb4ae59e0f3ec4f2466b13c28e7c2b26428e534a6c6ed99d79c05c00a89844c022d233acefbdd4e86e03159486bf4d1de9fbc5f794e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'v2c6NXtZlneWwLtrfNg8' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', '0d090c04056bb296f48733c2d3282d9c12edc025f090630966a8db85e431f6f807797fee815deaedc491bb029b54e6277666dc6bb6641549c63cdea408c11968', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'V9gmn6u4vdNUivuT6qe', 'mAFh2e8qZsGOytANR1Mu', '7e1fc5dcb98128bbd694bdb4ae59e0f3ec4f2466b13c28e7c2b26428e534a6c6ed99d79c05c00a89844c022d233acefbdd4e86e03159486bf4d1de9fbc5f794e', 'v2c6NXtZlneWwLtrfNg8', 1, NULL, '2012-08-31 12:52:24')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'bCP4k7Y8FroIGK4fOXk', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.1ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'yaN9DYqvUIyRxmMICta', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 21ms (Views: 1.5ms | ActiveRecord: 2.6ms)  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '58cbeb99a4616300fb6f18e197254f0ac309308ce172ff2440fb0f034cf3a611f6bd844ce8f712fcda57541d2ad24326c34ae54bca27b74fd22b3be18466591e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'GVXwXgUkFNSuvVtoFfSw' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', '91b027bea56509a1b0ae7db971b21dde66cd820957985f8d65bf64ca0d4af0965efc33404dfad9f9905143b6913b561e854a3f1f2687fa216e4268c3d0f02dff', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'zlIzeGSsU5xRbBfc148T', 'AsTbaVy4NVVje3fUx6', '58cbeb99a4616300fb6f18e197254f0ac309308ce172ff2440fb0f034cf3a611f6bd844ce8f712fcda57541d2ad24326c34ae54bca27b74fd22b3be18466591e', 'GVXwXgUkFNSuvVtoFfSw', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = '7cH7LZcOAT5xuh7XHJS', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:52:24', 'Template1', 'Body', NULL, '2012-08-31 12:52:24') SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 12:52:24', NULL, 'page7', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'uq2XJS8WBBwhwzKuNOq', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.3ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.4ms)  (3.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '02674e7d15f08dea6309afa560981b063e71086f4ca03e859efe4b96d7ff9cfa49b923c12ca2c62ac5d23f4173f745edf34813ef8b66aeaab6daeeae2122b28e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Re8KkP3i3HfOkSmgDWGn' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'f7a5d3d8f65b1c119265ccb633f23be873e011dc7b67074126121a5161641b1a77370f95e41f1df5fe5aba0a201c0d7520d4ddb63654c74e8598545361fc88ee', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'sPK5kgoLgdN6TbBFkOjd', '0Sp3J3G9aIa2uIDOJFGG', '02674e7d15f08dea6309afa560981b063e71086f4ca03e859efe4b96d7ff9cfa49b923c12ca2c62ac5d23f4173f745edf34813ef8b66aeaab6daeeae2122b28e', 'Re8KkP3i3HfOkSmgDWGn', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'JVeEGoQ4J9PgAYUCZ6z', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'PVcFimWIcnaGqf3XCNWZ', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (1.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '43011df102ac4ad8bc0f6567b9df88fbaa2b315321e9bfd51aac2fb6f2e839ce91517f3c8e55f53acc04414a62b6ab6436f12a17c82984581c4a2cca23bfefe7' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'OTY5AyQz0ocPJDbsNiZH' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'e7e285f445606291a8bc49d1993b6ec8eb05e98039e8df26cb4abbbe1c07ad62db6d6dbaf971dc3820f2dc2721bb38586b21086ae06776cd8276d49e1e0b27c8', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'X4XTuMX3hrw69g0tgIVF', 'UF0hwIgSWvsSo0dtkXEQ', '43011df102ac4ad8bc0f6567b9df88fbaa2b315321e9bfd51aac2fb6f2e839ce91517f3c8e55f53acc04414a62b6ab6436f12a17c82984581c4a2cca23bfefe7', 'OTY5AyQz0ocPJDbsNiZH', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 's5WjJWMkehLHeW19Z0R', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'xq7Tc2QvXAFMG0CTrG4n', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates`  Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 0.8ms)  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '34d2aa8be027e1621ee604028b9ab89d1b832ec9467d8872706b1b44e4d1332ad7270cc069b8b599ceb767941cfcfc825187716d57cd81a178ed39416fd50728' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'C5wyuTngDu1SQeFR6VQP' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'bb9ba1d85dd168a503e3dfd52625e9c15b33c09206282054aeb0639d9250b38cef25a7d95d565eca0e0ad3221b17e02351a5afdcfb5d814059a295c4e21ad5dc', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'uYogVSYIjmrYC1OXsser', 'oGvARU3zw5fAogv4Gfzx', '34d2aa8be027e1621ee604028b9ab89d1b832ec9467d8872706b1b44e4d1332ad7270cc069b8b599ceb767941cfcfc825187716d57cd81a178ed39416fd50728', 'C5wyuTngDu1SQeFR6VQP', 1, NULL, '2012-08-31 12:52:24')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = '8cwu5m1xon1tAYJZZwr', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'HB5GQCozJEP6ADsNlKk7', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 7  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.8ms)  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '56f0e86d7baebd96343202e2f01a95852b5c8327ee44a1fcdccd45a62a56223efaaaaab9ee23519b84eb69cb0380545316ed4740f62e6c4b956ad1b23805475e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'IqbYm8EmP0FjcdOf6YH8' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'b6379c82dcdba2a78b9d3cca21fa118cb40432e0ab5ab2b116a5b27c9a066ad9ba36258623edb2e0f94145e6516a31042fba7fd21e282584cbda2409dec8b5d0', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, '2AJUeo7ZFhIrylBVetAz', 'vgj3UChVymAuvG0Vo3OR', '56f0e86d7baebd96343202e2f01a95852b5c8327ee44a1fcdccd45a62a56223efaaaaab9ee23519b84eb69cb0380545316ed4740f62e6c4b956ad1b23805475e', 'IqbYm8EmP0FjcdOf6YH8', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'j2w5sl2GIQJAe6ifvcCE', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page8', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#edit as HTML Parameters: {"id"=>"8"} SpudUser Load (0.5ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'jVLoRCH0FZPiNyxEvNu', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 8 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (8) SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 39ms (Views: 1.3ms | ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '9c587142bfdfb82702ea6a560c33fc4409934de1c1978c9a7198c81e85d63718626d9bdc52022d7fee0149a2002c56f2cc3cf811285d2c28708ca6c35278e2dc' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'BIfY93Kwjn0hCou9iO3O' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'bf1763d45d6a39ce99763b2e0842a188ca24e0c9b6d2be557b3b16b15550163f3be83da7900b28210a48322c9de1129e7e28a6d9085540f39214b55862dcbd39', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'APpVmmeOcrLGimMT3fK', 'rxQEHigoH1NtsOy6nvos', '9c587142bfdfb82702ea6a560c33fc4409934de1c1978c9a7198c81e85d63718626d9bdc52022d7fee0149a2002c56f2cc3cf811285d2c28708ca6c35278e2dc', 'BIfY93Kwjn0hCou9iO3O', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = '8bKptxTlzTYNxUIJYUM6', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page9', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"id"=>"9", "name"=>"Adam", "url_name"=>"page9", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "created_at"=>"2012-08-31 12:52:24 UTC", "updated_at"=>"2012-08-31 12:52:24 UTC", "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "site_id"=>nil}, "id"=>"9"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'Cg1ESmclByXRr8b7JEj5', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (9) Completed 500 Internal Server Error in 6ms  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'd0de1ab8c561f07cf0512834807a2eb55258dc69ad9e46fad9a8e7992adf1ba9e19c648b81b2032862ebbe3b1e15e1d0f4f9982bc3566fe5eb664c3099ad351d' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '2yNWekJYggwG8oeSkcc4' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'fd4c4d5b4db1038a31a4a6c4b9b706d9a9f83f8e0f4f7028e26a060f5db1a008e68e963f17e1bcec2075edfa202a9efc5c5d3456a3b3350ef6a4a128815136e9', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'hzAwRMAsdw52MDNTXX5', 'IHBRzMKoZpLNV9xVa', 'd0de1ab8c561f07cf0512834807a2eb55258dc69ad9e46fad9a8e7992adf1ba9e19c648b81b2032862ebbe3b1e15e1d0f4f9982bc3566fe5eb664c3099ad351d', '2yNWekJYggwG8oeSkcc4', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'gUyzDDQ3I9HkDWPdf3E7', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page10', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"id"=>"10", "name"=>"Adam", "url_name"=>"page10", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "created_at"=>"2012-08-31 12:52:24 UTC", "updated_at"=>"2012-08-31 12:52:24 UTC", "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "site_id"=>nil}, "id"=>"10"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'Eiymoa1d5atUN6Uau9', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (10) Completed 500 Internal Server Error in 5ms  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1645754efb59e216607582aef436d0b680054da7888059664d3263d90a431bc5421d76c6340f2341375b0c637b677343a43b84fc531cafeafe53be8e1c222972' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'pW4sTV5XOgwfdvYTFIot' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', '1d592a343de932c77944684e0273e6f1b9a0dc898459e8e551c6e0fab96565aa58782c72b245072a72d044a923a1e72a92288ad7cd911e308b16ca364610d0df', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'oNQUnGLklbF9S5pRjwjn', 'BKl9Y0jqaL52EcOI1h27', '1645754efb59e216607582aef436d0b680054da7888059664d3263d90a431bc5421d76c6340f2341375b0c637b677343a43b84fc531cafeafe53be8e1c222972', 'pW4sTV5XOgwfdvYTFIot', 1, NULL, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'EWwa0WapU0z0eVsB5TLA', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 11  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e245729aaca011b3080987486539031831db0842da4d2d9db144652ffe64e2ba909e590defea7834e06277add0cd260da33a1106ff685100ef1e8591aee14e11' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'hngXZs2f4kOvidNmd3' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:52:24', 'ff3d26dfd44171cb2b43c96efd1a353e9bff431e1b202a309e741c25a4f9778ae8d214b7587864bd7a92edb8732661bf751cb4139c0da9e350323d1862e6c351', '2012-08-31 12:52:24', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:52:24', 'testuser', 1, 'ghUQOqnHunhmXUv9lWPH', 'yk5QYyIpih1iu4Bftrq', 'e245729aaca011b3080987486539031831db0842da4d2d9db144652ffe64e2ba909e590defea7834e06277add0cd260da33a1106ff685100ef1e8591aee14e11', 'hngXZs2f4kOvidNmd3', 1, NULL, '2012-08-31 12:52:24')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:52:24', `current_login_at` = '2012-08-31 12:52:24', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:52:24', `perishable_token` = 'swRcZW2fvGws9iU6bwNB', `updated_at` = '2012-08-31 12:52:24' WHERE `spud_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.4ms) SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page13' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page13' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page13' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page13', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'page13', 0, 0) SQL (0.3ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:52:24', NULL, NULL, 13, '2012-08-31 12:52:24')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 13 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 13 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 13  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 14) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 14, NULL, '2012-08-31 12:52:24', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 14) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 14, NULL, '2012-08-31 12:52:24', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 17) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:24', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:24', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 19) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (19, 'SpudPage', '2012-08-31 12:52:25', NULL, '2012-08-31 12:52:25', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 19 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:52:25' WHERE `spud_pages`.`id` = 19  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 19 LIMIT 1 SpudPermalink Load (0.4ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:25', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:25', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 20) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (20, 'SpudPage', '2012-08-31 12:52:25', NULL, '2012-08-31 12:52:25', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:52:25' WHERE `spud_pages`.`id` = 20  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 20 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 20) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 20 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (20, 'SpudPage', '2012-08-31 12:52:25', NULL, '2012-08-31 12:52:25', 'permapage-new')  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 20 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 20 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:25', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:25', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:25', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:25', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 12:52:25', NULL, '2012-08-31 12:52:25', 'original') SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:52:25' WHERE `spud_pages`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:25', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:52:25', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 23 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 22 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:52:25', 'test', 'Body', NULL, '2012-08-31 12:52:25') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:52:25', 'Template4', 'Body', NULL, '2012-08-31 12:52:25') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page14' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page14' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page14' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:52:25', NULL, 'html', 1, NULL, NULL, 'Page14', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:52:25', NULL, 'page14', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public. Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.4ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.1ms) TRUNCATE TABLE `spud_menu_items`;  (0.5ms) TRUNCATE TABLE `spud_menus`;  (1.0ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (1.0ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (0.6ms) TRUNCATE TABLE `spud_templates`;  (0.7ms) TRUNCATE TABLE `spud_user_settings`;  (1.9ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3b13be737fa58e20076b169ab18883ae949b48e13635ee7a8777689922422324b80287eda9a573cbf2dabde1ab927be2b53245827ba5e9bba2b59f3828aaa316' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'V21gGlULa1QCJ0d5QN2t' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', '975c646a90e2f070d448434d1780052a670accbed80a1742d0e70d546f1bb5d8f88a8ab699be0a708e721af32c43e5fe958af57ea449b933f498d7474c847f51', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, 'r7CVA6fFaPyXNBOCBzH', 'oSlTfPW5F0QvVghBCNQ5', '3b13be737fa58e20076b169ab18883ae949b48e13635ee7a8777689922422324b80287eda9a573cbf2dabde1ab927be2b53245827ba5e9bba2b59f3828aaa316', 'V21gGlULa1QCJ0d5QN2t', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = '6fBpwYC6tWDhMv5NwUnl', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'BPmXJoWNrkgymW4An5', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 16ms (Views: 10.0ms | ActiveRecord: 0.8ms)  (0.5ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'd1eaabb6ecaec5b8d62d955bebbdfb2d88e93f66519cc32f692c57bd97dd7fa9fe5e99cd2e3acfbebb61d299d20a844fb421d52d943abc50bc92bb4f6a1d4e03' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'IgGwmXIgf4v2aVU99Lb' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', '3ba84a2bcba518b60d9163ef4db36cc95ef48c9b9dced583c6956484a27c9dd4c17f1865f89d6576b751358914fb0427412194e629aceb4f8ecab05ea82dd9f8', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, 'mcrQQUs0jE2dgWr7Xolj', 'vUZuLcWtWptYjFT7JchC', 'd1eaabb6ecaec5b8d62d955bebbdfb2d88e93f66519cc32f692c57bd97dd7fa9fe5e99cd2e3acfbebb61d299d20a844fb421d52d943abc50bc92bb4f6a1d4e03', 'IgGwmXIgf4v2aVU99Lb', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'XTlPjqFrKNui3v4ajjtd', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:57:02', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = '83nAb3l6MiqwOg3zAX02', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.4ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '02831392fda3362e82263b32713550b9658faa68b7a0d86b140f5bad372f2a8561976429e55ddb0273ae8d94dcf3ef88a4c83d169d4c8a34901bce4cea478d07' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Ym0oDrsfd7G8JcrKeL' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', 'bdf6fbbc849a80843efde477a088ca95eedcfc78d1f0c4c37577ae2dbf12c12b65abec709addd2d36afcaf06d7ee1f8ad060995f4683ce3770e013d622ae4116', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, 'hbRar8ZeXHBdi5IIQK', '1jRSC40PwZlxkzZmNtX', '02831392fda3362e82263b32713550b9658faa68b7a0d86b140f5bad372f2a8561976429e55ddb0273ae8d94dcf3ef88a4c83d169d4c8a34901bce4cea478d07', 'Ym0oDrsfd7G8JcrKeL', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'enBMqfjTlGBLVCTK82GQ', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'lf1yyS72SqKM30zHeAm', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.1ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 21ms (Views: 1.5ms | ActiveRecord: 3.2ms)  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '7331cf591084425593b3894393c71b22078b04a8b855fd452eb3bbbe4bdb619040c74adbccb955f3d645cd62aed37db34019a91d823d689f6eedc73f872e1459' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'gMPn4ST1MNaVqWqqYn94' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', '2064ffb1aaf49a7946a71cbcdb6dc6a0e02541b3bfc76cf4707b75ddf81e400fcd06062c2836a19a944c98d5dad58523c8bcc0fa44a3d5a71b580ff013033138', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, 'HJd5qBN3ddWjVrXYRy', 'jWgddRgz9JzVsUVk64IM', '7331cf591084425593b3894393c71b22078b04a8b855fd452eb3bbbe4bdb619040c74adbccb955f3d645cd62aed37db34019a91d823d689f6eedc73f872e1459', 'gMPn4ST1MNaVqWqqYn94', 1, NULL, '2012-08-31 12:57:02')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'k4S7e3AZz7xaFQFKzjO', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:57:02', 'Template1', 'Body', NULL, '2012-08-31 12:57:02') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 12:57:02', NULL, 'page7', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'iubRqrwwh8Hrxoe9xTcR', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 1.1ms)  (2.4ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '73852caf8b733d9a8388025ea975a0820f1509b4bfec09b67580134b209bba5ce7db4b69f189f5c52790bac169d4bb6f1f45fe70c47cbfd71770328c8eb073ce' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ZFOOuhr4ZQ2LyJ43yvPd' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', '2de25a589179c4b3e229c8692b8dee40e75768f3f9c530df8790d565518810a23347dea7586c42d10ba45146dab539737a54698132833f4de7a5c2564c7fa022', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, '8QgPt0l78PTrAwLKRr3a', 'MpDmhIx42pnWxCIRVoVT', '73852caf8b733d9a8388025ea975a0820f1509b4bfec09b67580134b209bba5ce7db4b69f189f5c52790bac169d4bb6f1f45fe70c47cbfd71770328c8eb073ce', 'ZFOOuhr4ZQ2LyJ43yvPd', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = '7oDSOw2tR0G8CcTCkIG', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = '2Io3rpy77kBC2MUJIjG', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'cdbac6cc855238351addce45d08e1354ef2cbb1ccef7616fe3053e76d5f3890938449137b7c8fc5bfcd38cc080d5d49426aec741903d8784c0598187e0a18f13' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ZUc27g8gCc5j4iAA3q1' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', 'c25c587c0ad80df1f775f75ebb3f4d612828258981dd86df09f1dced21a1c00e8c0be0f53f28b0f222b210c4db29d3a8aca80f7cf1f6b8c3fba70d3629c10228', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, 'fLoTfe7nIo4BMS7LPla', 'GbZGUdQ1SbfzKyLskTZL', 'cdbac6cc855238351addce45d08e1354ef2cbb1ccef7616fe3053e76d5f3890938449137b7c8fc5bfcd38cc080d5d49426aec741903d8784c0598187e0a18f13', 'ZUc27g8gCc5j4iAA3q1', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'KsqKB0WO8RoUNNo76Lu4', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'n67afmV0Ez1ikb7uEkn', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates`  Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 0.8ms)  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f594a445689ce7e833df731f1eaf8d86bc66205625b72ceb2eb13bf2c6879f159a361983b21577bf509f6ff06a2a0c46cc7f6a83ee87d071cbf8c5e849e79282' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'F7xR5XtEYOGqssGBdi' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', '863f75bfae33aeb266db54730e803d42e66cea9b4641ad9cd5b3b1235a15b37e8aed7f1e561e6164e8993facb1434e1ba89c8bc0704e0393d6de5b15e33b1db2', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, '4QsywIzkB0Ob7J0iuuT', 'iUQqqZLCImdsLyz8jFCU', 'f594a445689ce7e833df731f1eaf8d86bc66205625b72ceb2eb13bf2c6879f159a361983b21577bf509f6ff06a2a0c46cc7f6a83ee87d071cbf8c5e849e79282', 'F7xR5XtEYOGqssGBdi', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'RWx1coNzJHYHdNWdBQOa', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'epJOew2mVodT51TNTLL6', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'c91cc1926706c532b50aa7ffef4d26bcbed0da38becfe19f74770ab30f3aa3dfb580a1ca515b77a660c0f220069040fd6d2fb7aac532d578a122e995b3326b26' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'BJKh5a4SYUXgHZQBQac' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', '4bf6dd9d3e62a009d0b05bd96643d30e49ecad97e5955426ea714d54d7620465d633c14da1c65a74cdb568d5836a7faa9fc309d81e3eca926994a311de97fdb1', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, 'nPgfOtMLj5XvfpuehsC2', 'As44GP94TygGOiDaQvr', 'c91cc1926706c532b50aa7ffef4d26bcbed0da38becfe19f74770ab30f3aa3dfb580a1ca515b77a660c0f220069040fd6d2fb7aac532d578a122e995b3326b26', 'BJKh5a4SYUXgHZQBQac', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = '4x8JWq0PRxEhjwnl4WG', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page8', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#edit as HTML Parameters: {"id"=>"8"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'uu1DAz5q0YtS8ci2fY', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 8 LIMIT 1 SpudPagePartial Load (0.3ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (8) SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 40ms (Views: 1.3ms | ActiveRecord: 1.4ms)  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fc70b0a112b42dfcb6919e4ca553b2bc9cd6fff1ee2ab0068f788cdef37fa359c86d84c8bd4d8a12e5704e1f1e3c3674332761fd4a945ed080dfad79daf77a71' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'zbvlrrLWUrDpWgNwy02S' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', 'dcd2b1136d71b50c4d73b946f46dbe084cce565f34b9ec308e4981ebd7cdb24c601152759c347e47bb566c33dc0f38a3d377652afe6e661cb16c084f374ba0f8', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, '3vqy29iO8uMnKC47kOp', '7Wfvu2SRtVnJcVRvQpIF', 'fc70b0a112b42dfcb6919e4ca553b2bc9cd6fff1ee2ab0068f788cdef37fa359c86d84c8bd4d8a12e5704e1f1e3c3674332761fd4a945ed080dfad79daf77a71', 'zbvlrrLWUrDpWgNwy02S', 1, NULL, '2012-08-31 12:57:02')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = '2GbJiwfoYpiZKuXXf3', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page9', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"id"=>"9", "name"=>"Adam", "url_name"=>"page9", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "created_at"=>"2012-08-31 12:57:02 UTC", "updated_at"=>"2012-08-31 12:57:02 UTC", "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "site_id"=>nil}, "id"=>"9"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'er3OA85nkguWlRJK7TS', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (9) Completed 500 Internal Server Error in 6ms  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '423010ee15568beda4479565a253dda2a3d56cd1b2d29e4af8fbec149fd0309483430f8d75fb460b5f66642b3ea8b37cf5e0d92c75aa942de681f463817b4bfb' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'uElqpF13X9HHBZCx5wpI' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:02', 'd7af65f1009a23f274dd43b233e8101d9990983845ac1ad0aaa9d5411f026219fc4bb3716fc8f10593925d9d7e8a90c8d9b0252e58470f31640d03c022a700c1', '2012-08-31 12:57:02', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:02', 'testuser', 1, '92C9jIyU4DzoHWMprVG', 'CXvD5ix8ezTyoqd7KsWd', '423010ee15568beda4479565a253dda2a3d56cd1b2d29e4af8fbec149fd0309483430f8d75fb460b5f66642b3ea8b37cf5e0d92c75aa942de681f463817b4bfb', 'uElqpF13X9HHBZCx5wpI', 1, NULL, '2012-08-31 12:57:02')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:02', `current_login_at` = '2012-08-31 12:57:02', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:02', `perishable_token` = 'Ii2b6e4ulcZai8zPc9AR', `updated_at` = '2012-08-31 12:57:02' WHERE `spud_users`.`id` = 10  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:02', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:02', NULL, 'page10', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"id"=>"10", "name"=>"Adam", "url_name"=>"page10", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "created_at"=>"2012-08-31 12:57:02 UTC", "updated_at"=>"2012-08-31 12:57:02 UTC", "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "site_id"=>nil}, "id"=>"10"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:03', `perishable_token` = 'KWJbac4wy8i4oDsns9Q', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_users`.`id` = 10  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (10) Completed 500 Internal Server Error in 5ms  (0.8ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'c3278aa8cf5c9f7aa4145f978ac7ad5ad9749435672730b49b2b77bd479263f8abfd20fa66a48024b013ee78f1e2b86be06704b8c727c4ed0a40e6f95e6cf36f' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'QsroxClce9EnHX00UI' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:03', '1d6d9d6cefc1259b7869de37d82d403bb032551f2e1a120661da24b9b2e6e5299b96252611ed0d856b13d410fc1d42dc0adb80c893b39a2b0a7d3610abb08ac0', '2012-08-31 12:57:03', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:03', 'testuser', 1, 'lSlNq64taYSLAItyGIPD', 'Cs3Pyy42geNZIVfYGWV', 'c3278aa8cf5c9f7aa4145f978ac7ad5ad9749435672730b49b2b77bd479263f8abfd20fa66a48024b013ee78f1e2b86be06704b8c727c4ed0a40e6f95e6cf36f', 'QsroxClce9EnHX00UI', 1, NULL, '2012-08-31 12:57:03')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:03', `current_login_at` = '2012-08-31 12:57:03', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:03', `perishable_token` = 'YUfWYjFBf5ttm8Dnoghm', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'page11', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages` Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"11"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 11 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:03', `perishable_token` = 'UK6WGfaDpgpwaKhxcyr', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (11)  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 11 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 11 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 13ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM `spud_pages`  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '4e3fbbb7277aac878f32b8a483697b3f799bbb5d9fa620b86bc01ec01f43ee549b330d381663de15da8236d89831e1ab5759fc1de42fb5a2bf988497bb45fbba' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '5w3uSBDoGaxjRlTtZxR' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:03', '43434bd9f0ad99862e0f384f9a95fd4edc0992d149205cfa0faf9b0afb09e54e1f6a4633a82249a7784be1309dbe93d0dfb8144e01fb5c32e6ea8237aa9c2483', '2012-08-31 12:57:03', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:03', 'testuser', 1, 'FgXnRslEBAMqMmUH31IU', 'Gq9eE7lVZ17b8QQioey', '4e3fbbb7277aac878f32b8a483697b3f799bbb5d9fa620b86bc01ec01f43ee549b330d381663de15da8236d89831e1ab5759fc1de42fb5a2bf988497bb45fbba', '5w3uSBDoGaxjRlTtZxR', 1, NULL, '2012-08-31 12:57:03')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:03', `current_login_at` = '2012-08-31 12:57:03', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:03', `perishable_token` = 'vWM5y0mVuY461E4a0z9j', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page12' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page12' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'Page12', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'page12', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages` Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"23532"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 12 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:03', `perishable_token` = 'dmCHGOF0ObkzkfsA7uXe', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 23532 LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages`  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.3ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.3ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page13' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'Page13', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page14' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'test', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page15' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page15' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page15' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'Page15', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'page15', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:57:03', NULL, NULL, 15, '2012-08-31 12:57:03')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 15 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 12:57:03', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 12:57:03', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 19) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 21) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (21, 'SpudPage', '2012-08-31 12:57:03', NULL, '2012-08-31 12:57:03', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_pages`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 21 LIMIT 1 SpudPermalink Load (0.4ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'permapage', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 12:57:03', NULL, '2012-08-31 12:57:03', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_pages`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 22 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 12:57:03', NULL, '2012-08-31 12:57:03', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 24) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (24, 'SpudPage', '2012-08-31 12:57:03', NULL, '2012-08-31 12:57:03', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:57:03' WHERE `spud_pages`.`id` = 24  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:03', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 25 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 24 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:57:03', 'test', 'Body', NULL, '2012-08-31 12:57:03') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:57:03', 'Template4', 'Body', NULL, '2012-08-31 12:57:03') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page16' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page16' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page16' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:03', NULL, 'html', 1, NULL, NULL, 'Page16', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:57:03', NULL, 'page16', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.4ms) TRUNCATE TABLE `spud_admin_permissions`;  (1.3ms) TRUNCATE TABLE `spud_menu_items`;  (0.8ms) TRUNCATE TABLE `spud_menus`;  (0.6ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.9ms) TRUNCATE TABLE `spud_pages`;  (0.8ms) TRUNCATE TABLE `spud_permalinks`;  (1.0ms) TRUNCATE TABLE `spud_templates`;  (0.5ms) TRUNCATE TABLE `spud_user_settings`;  (0.8ms) TRUNCATE TABLE `spud_users`;  (0.0ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '225b10d1585b6fbf28837494dd91e3c6cdf6ac559ad988f8e321ed77280f29f425366aff3b72809978b20f1659be623dab02ca2e631b4fee2fe25d165b8856af' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '5LojixavgMKBCBWFT87' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', 'c2a5f734e94bda86fb2b5924fbe66d7a71a09ea8390d483aa577de2e7d7d9216327d3e9fc8412ff4c2243d071a0552add1b1f0792fa49b0760a46e32173978ae', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'eEBqeedv5mpfrpHK9F', 'aFjC2eKCLjYpo5egQAzF', '225b10d1585b6fbf28837494dd91e3c6cdf6ac559ad988f8e321ed77280f29f425366aff3b72809978b20f1659be623dab02ca2e631b4fee2fe25d165b8856af', '5LojixavgMKBCBWFT87', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'gIXxiGgg9hvCgnonD4', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page1', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'siUOc9llXKr464DQ4et', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 15ms (Views: 9.8ms | ActiveRecord: 0.8ms)  (0.4ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1c65b72c626ae9443bd9d9c3c13707c9aef8c32c77a13ff02e6377f0c8f8e977e08c06722ecc57023cc0ceac88530d909ae03c0ab92eabdde7fc57099b48d036' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'K220bULfQ6ig85Bho3ky' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', '8ec7246cce0753f0fb8d30eca2035243e1b5ed8f0511041af666eb56d3025111de27c4a3cc1e356fa1859b5c5ebd36001ac3e0856590f8463dcdda376045d725', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'FAy8QZfA17Dh05pzKTpb', 'DjKpA7NQKGb0dY3H5M5', '1c65b72c626ae9443bd9d9c3c13707c9aef8c32c77a13ff02e6377f0c8f8e977e08c06722ecc57023cc0ceac88530d909ae03c0ab92eabdde7fc57099b48d036', 'K220bULfQ6ig85Bho3ky', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'DdhnX1EhRu0IsjWmX2LG', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:57:46', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = '2f99GIp3W7sCoCOIaUF', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.6ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '367d5342c2af36938951448053900e20b50535d7023d3548e917d7ef5dfc103195d4f6d8099a4fedd072b64957e9342ec9848f76d30e2588487e1f243a0a973d' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ku1ocqL0Xz48lxVVlA' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', '2e58c394f534ea15ee267f679e5f3d99faa1af4cfdee32c35e7b51359e4dc215d15459cedefdad94728884458eb5c9fc4d20cf9a072497169172d38fff4da048', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'XlxXJgXTR60prJbBQS8H', 'gMVXaQATqVCpUuxlATe', '367d5342c2af36938951448053900e20b50535d7023d3548e917d7ef5dfc103195d4f6d8099a4fedd072b64957e9342ec9848f76d30e2588487e1f243a0a973d', 'ku1ocqL0Xz48lxVVlA', 1, NULL, '2012-08-31 12:57:46')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'tYoTCEYQGXjl4xBzVrUF', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'MWhmkdlyfuyijw50t8bI', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 21ms (Views: 1.5ms | ActiveRecord: 2.6ms)  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1a699b6f35cd7c0a7070cd8b7c0256fd27ac793324256e4ce9672a46ec76cf5d619e0210d19d9cd19b97b3b132e2bd02d850836202c4ca38e80017b6d27c5a39' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'MaejuFf3h2dKvO5jXb6' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', '1512fcc0c58f51715585cc74aa06a4025fb11176ecd4831a8f6961bba8575898e10d2ae8cd11126e3183af05e58159348ec516451881036dc132b79d19512bdc', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'ZaBRyBUOf3cEPfPWo', 's0DJKFOXlfY9hGjGjTQI', '1a699b6f35cd7c0a7070cd8b7c0256fd27ac793324256e4ce9672a46ec76cf5d619e0210d19d9cd19b97b3b132e2bd02d850836202c4ca38e80017b6d27c5a39', 'MaejuFf3h2dKvO5jXb6', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'OaYpjeBpSlwMpvEg55JE', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 4  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:57:46', 'Template1', 'Body', NULL, '2012-08-31 12:57:46') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 12:57:46', NULL, 'page7', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'qHqSsjxdyufOZZnuNL', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 1.1ms | ActiveRecord: 1.3ms)  (2.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f1fc833aa8e746bbd37b70fab4f11fdc4a021b0209afcd08d0f03842948c7df40e0bc914e7c13a2e20d3c7a60989dd0e26283b2c301f4dc21c07a57d4af17663' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '7bUg2WMTNIts45UUuE2' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', '4149fdda121e3c39c5b0431e049b55ae37382140fa4830acbf1a49ee4e65f82adbd0cae3e7a2935e5fc691c0126b16b43140ac8ffe9895902758b07681d32ab9', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'AzNG2HbikpuJMZVUV44', 'wtSFAP1YS6YAG1kLDeAS', 'f1fc833aa8e746bbd37b70fab4f11fdc4a021b0209afcd08d0f03842948c7df40e0bc914e7c13a2e20d3c7a60989dd0e26283b2c301f4dc21c07a57d4af17663', '7bUg2WMTNIts45UUuE2', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'yHkGc77N2zbFYQaCrSbG', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.1ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'ixZo16pS6PD9U7JGJo', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 5  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (1.1ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'd76e84831a869626276c377361661c7c391836034c4615c2e11a3f73aa655f8ae1b69692afd8a685c6420125917d40dc050bbfe2cf7bc701e7b8f960ce5f612d' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ynjsWaSL9zLgmuWRHQ' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', 'f22e7b962dfeae2a08aad5944d1cbd4027a84f7dd832a94324ad199d50039d3c037d4dbbd03ec5b995d2e380743ba01dd9eba939deaff7085e33e7bea32b03ef', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'IMB94hVfmwLEtTP3NpNB', 'xB8V2Q11R1IMsruZpuz0', 'd76e84831a869626276c377361661c7c391836034c4615c2e11a3f73aa655f8ae1b69692afd8a685c6420125917d40dc050bbfe2cf7bc701e7b8f960ce5f612d', 'ynjsWaSL9zLgmuWRHQ', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'ofZVbZMz4jZGz3EYKRDv', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 6  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'Yavd5oCsqSPSu8vYPqh', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 6  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates`  Completed 200 OK in 12ms (Views: 1.4ms | ActiveRecord: 0.7ms)  (0.8ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b2d56a86431ecb8ecf8a756dd54ef78ae2d89d029e2b276d135f28f463f06f22d9b2c04ba40a7998b576e7ff93992e15688d28f04326799c31849408a275af85' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'sqtcgXcNLxSXRg2nEmz' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', 'a487df863df1fd4a0f5a2c73b9a49fcb7065d80578b545082d06fe887cda62743d46a9a5f2c10735c4b5e775254283515d6597bdf4b839097f33c05d8440d9d0', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'ER8liCj01kRBPloYPm', 'mf1KIq58xjslkpUYtlaP', 'b2d56a86431ecb8ecf8a756dd54ef78ae2d89d029e2b276d135f28f463f06f22d9b2c04ba40a7998b576e7ff93992e15688d28f04326799c31849408a275af85', 'sqtcgXcNLxSXRg2nEmz', 1, NULL, '2012-08-31 12:57:46')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'vZJyqwmHWSTsdazgj8e', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'kOFRHO9FAlCWPIvMII', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 7  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.4ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '0fbb070c78865720468a361b7672d87819fc8196042e24beca656d86c78331596ab0f0a7c2a1bd2acffaab3e2c2c99b7b96c5e275944fe3ac4d5b17d6487b6f9' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'duWlV9iO0H2JLBdvJahQ' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', '3a7a5d221a7dde0dfaa40b6d5ab2019383a15303f2e526ae8f41293b120080263b28854e9d49ac2c10491ed70d76267bf48fb74ae9d709211741fafcfcd097b4', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'wQpKko99sGffypubiHr', 'OiMjWpCSf6TCUQhzRwV', '0fbb070c78865720468a361b7672d87819fc8196042e24beca656d86c78331596ab0f0a7c2a1bd2acffaab3e2c2c99b7b96c5e275944fe3ac4d5b17d6487b6f9', 'duWlV9iO0H2JLBdvJahQ', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'Q51GI7wYGUeg8dbzEnXW', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 8  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page8', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#edit as HTML Parameters: {"id"=>"8"} SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'I9rlRPZkk9rEmGhQEAnV', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 8 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (8) SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 38ms (Views: 1.3ms | ActiveRecord: 1.2ms)  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '5c391a51e0f876d39965c7fc5fb94365de093e76c5e5f9b7ef5faf9782149f61c667bbaad782ba639e98c65410693f37b2014beb1cd87a8219d85208c58790a3' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'jS4otWDbe1qd7Y1iabri' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', '48f1f10da188bb614594f349e5324ca255756fa98ec4eee2c6c021d8ca1e2f3159f3ee3dbc70ab8ec121045dbfeed817a81a3b4fb2b7f9f7396919ea7726c7af', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'kxMYGqjZZh0jHh6P8LFd', 'wMiU5Qy7IerLYKisoU4', '5c391a51e0f876d39965c7fc5fb94365de093e76c5e5f9b7ef5faf9782149f61c667bbaad782ba639e98c65410693f37b2014beb1cd87a8219d85208c58790a3', 'jS4otWDbe1qd7Y1iabri', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'mtOALyBTmltFaAS6ZFmi', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page9', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page9", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "created_at"=>"2012-08-31 12:57:46 UTC", "updated_at"=>"2012-08-31 12:57:46 UTC", "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "site_id"=>nil}, "id"=>"9"} SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'oub3un3lgu68dbxx64PE', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (9) Completed 500 Internal Server Error in 6ms  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '201b173cf59b71bb18f41fc19e7d42ff8b5a35883eba8b6e7540aed58c5e5019ed7850427fc9ef7586e4a6f8a01b14435b30c2d471ca1414c94ba7137af7af79' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'pYJVTqEXzzCizeEJqY4' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', 'bc796cd682e5c1b487b431fb3eb13fbd68f751ff57f77cf824f0c17370d32a6ec1af95280e4fa2dcb3d7b106171b54be118d8b9ea7c6dbc1c7d64d01fbcb7d53', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'DFlPmPYfW0ZXRCqmUgO', 'eR6dKRxcAyiY30ziJ6', '201b173cf59b71bb18f41fc19e7d42ff8b5a35883eba8b6e7540aed58c5e5019ed7850427fc9ef7586e4a6f8a01b14435b30c2d471ca1414c94ba7137af7af79', 'pYJVTqEXzzCizeEJqY4', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'WsXeaWtoUJrIfQM80MDV', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page10', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page10", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "created_at"=>"2012-08-31 12:57:46 UTC", "updated_at"=>"2012-08-31 12:57:46 UTC", "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil, "site_id"=>nil}, "id"=>"10"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'ugegUVtArVupDPM3hEsV', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (10) Completed 500 Internal Server Error in 6ms  (0.6ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '505022e8dc52a1c8610573d26267c849e23b9762fe65ebdfbfd725129289e59281226ef2dddb936c2b18ff1e049a3c8fb55ed97c56c17a96c31afb590fefffaf' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'mGj2DlM9Y1fiEQRYA1' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', '21fb29c479b63e314d216ba6acb6844c21b07d18efd8f505a12050468dfff6a8eada9c1cc70cae3b63caf2ce94395792a94cc672101b108440a44218b4291bff', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, '8hH5vzWODUcVSH0J3WS', 'HKGSZfjs9yNUMJDud3', '505022e8dc52a1c8610573d26267c849e23b9762fe65ebdfbfd725129289e59281226ef2dddb936c2b18ff1e049a3c8fb55ed97c56c17a96c31afb590fefffaf', 'mGj2DlM9Y1fiEQRYA1', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = '2LJG7mpFhsiEHVY9JyLj', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page11', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages` Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"11"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 11 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'qdaAjpDKQt36FDUMWb', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (11)  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 11 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 11 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 13ms (ActiveRecord: 1.8ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages`  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'a72559a6fae0bfc75f05e81a92c3c01daacec51bf870003df36a6d2d7fd11284f4102144ea2399cbed1770bba6d6c746af28c9c30df9ee63a5fae69adcae9038' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'wdmeVfh0eJTjL2JnIu' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:57:46', 'c592df89a72cb83021ba5ed8572bd800d32d2b1aacebb122170285e396d1eb3558bc6157fd84a8ae44b0600f1bc72af06c110fde06ced18a5614d4d7978fd816', '2012-08-31 12:57:46', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:57:46', 'testuser', 1, 'daxetIm0aQVkoy51Z8J', 'hRVZi2P36xyzn3w8gl2', 'a72559a6fae0bfc75f05e81a92c3c01daacec51bf870003df36a6d2d7fd11284f4102144ea2399cbed1770bba6d6c746af28c9c30df9ee63a5fae69adcae9038', 'wdmeVfh0eJTjL2JnIu', 1, NULL, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:57:46', `current_login_at` = '2012-08-31 12:57:46', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'YSUpe4sGN1SQSd8OIH', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 12  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page12' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page12' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page12', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page12', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages` Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"23532"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 12 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:57:46', `perishable_token` = 'BTxiFncABKrUlIO0YNS', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 23532 LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages`  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.4ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page13' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page13', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page14' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page15' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page15' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page15' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page15', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'page15', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:57:46', NULL, NULL, 15, '2012-08-31 12:57:46')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 15 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 15  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 12:57:46', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 12:57:46', NULL, 'parent/page-2', 0, 0)  (0.3ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'about', 0, 0)  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 19) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'testimonials', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 21) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (21, 'SpudPage', '2012-08-31 12:57:46', NULL, '2012-08-31 12:57:46', 'another') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_pages`.`id` = 21  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 21 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'permapage', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 12:57:46', NULL, '2012-08-31 12:57:46', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_pages`.`id` = 22  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 22 LIMIT 1  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 12:57:46', NULL, '2012-08-31 12:57:46', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 24) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (24, 'SpudPage', '2012-08-31 12:57:46', NULL, '2012-08-31 12:57:46', 'original') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:57:46' WHERE `spud_pages`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:57:46', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 25 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 24 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:57:46', 'test', 'Body', NULL, '2012-08-31 12:57:46') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:57:46', 'Template4', 'Body', NULL, '2012-08-31 12:57:46') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page16' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page16' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page16' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:57:46', NULL, 'html', 1, NULL, NULL, 'Page16', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:57:46', NULL, 'page16', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.2ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.9ms) TRUNCATE TABLE `spud_menu_items`;  (0.5ms) TRUNCATE TABLE `spud_menus`;  (0.8ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (1.0ms) TRUNCATE TABLE `spud_pages`;  (0.9ms) TRUNCATE TABLE `spud_permalinks`;  (0.8ms) TRUNCATE TABLE `spud_templates`;  (0.5ms) TRUNCATE TABLE `spud_user_settings`;  (1.1ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '79d56194dd10c9ab0a564b653d8f53714575273d789b2d9d7211e687ca190d43fda5ad2dfb2eeb4fbc6c16bdb6c4207b3f9613563672c4e34687b2f39abcf3c9' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'ayXjbkpw6t1dv67Pzdak' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', '3d62b16145837b89715f57ec4cc071e293fc86a6e5d58f3d769c666ca144c273dd91dd23390e3d5f5d517efd3c95c262741b90a4f0834064c45692cf65cf94d3', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, 'q2VS13EPXwLe2OHuOp3', '0bvAa7aDTJ1cypvnTh2', '79d56194dd10c9ab0a564b653d8f53714575273d789b2d9d7211e687ca190d43fda5ad2dfb2eeb4fbc6c16bdb6c4207b3f9613563672c4e34687b2f39abcf3c9', 'ayXjbkpw6t1dv67Pzdak', 1, NULL, '2012-08-31 12:58:25')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = '8LfYINJj0OljQpows3Gm', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:25', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:25', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'VfKSaoHWFRNjMS1LvlD', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 0.7ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3ebddb25b2d7d21d9a90e3f346834cd9bc78e9b9098103814b4504b6b92e68140b563988be4d8a7d5612ee9df5d7861e6c84c3d7f71da0f3a768e2e75eb5dbd4' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '1Scu4UCKX1mMzDoIYS' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', 'fa706b2d80595751f77d81278b3e7550a52c035397f08ae5b4a50c42d84d4aef2c5f958234fb20d4f3bebe4d0545f51c553ca6e20a48e27f82f96f21b11f9aa5', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, 'pHVJKXZdefyE9JRfvjCC', 'WYjMibYoKMf8ENkJ1RW', '3ebddb25b2d7d21d9a90e3f346834cd9bc78e9b9098103814b4504b6b92e68140b563988be4d8a7d5612ee9df5d7861e6c84c3d7f71da0f3a768e2e75eb5dbd4', '1Scu4UCKX1mMzDoIYS', 1, NULL, '2012-08-31 12:58:25')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'OOSuHaRoh9ggj8h83oI', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:25', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:25', NULL, 'page4', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 12:58:25', NULL, 'page5', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'wmKPxrnK7TK2GxLU3O', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 2  (0.0ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)  (0.3ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'e9227b107c23e29a480887cac54deae8597dbc2673c793931ae25c8fc07785cc0215f22dc7d67ce15deb1c74110c72655158e82cf49dbaba3f2f4f1c0f495fd8' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'pP9H8nllBtAHh0pQonp' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', '714c209cdfb0ba4e7bdd91aa5f05d4526e08ce2a625dc7f809f847df3636d2397542120b89de175f7ec43dc2796eb8e7ee8a8d96ae2517727233d8154e9b4c44', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, 'sH7ORpONOAEcYcS9Z5H', 'xLiCslhA5Hp11jnJAykz', 'e9227b107c23e29a480887cac54deae8597dbc2673c793931ae25c8fc07785cc0215f22dc7d67ce15deb1c74110c72655158e82cf49dbaba3f2f4f1c0f495fd8', 'pP9H8nllBtAHh0pQonp', 1, NULL, '2012-08-31 12:58:25')  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = '68qwYz1UxA6xrMXnabe', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:25', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'LtZi51Zp2m4rODYAmwT2', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 22ms (Views: 1.5ms | ActiveRecord: 2.7ms)  (0.6ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '018b4749cb9f5bcd27600ce2e1b6f2b475641ed9e6e992c3482db68c855d4ea363b5de620e7e062af51a05be60931a745defdb4cc04a9df4936f699c5ce6d923' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'G8d9z7sEGNOjWKiY65' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', '68bcec9c758c488e2dd0e2f8d5849ee856a81472a6f34b8b8ba4496bc72048aa0ff3d7deab18aaf413c8d67c32d23c3b0492d0edb3ee29e000798b8ce202d07e', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, 'kyef5taJ09wcJSWZM9jZ', 'MmVynwF48wMLHzdIWJ', '018b4749cb9f5bcd27600ce2e1b6f2b475641ed9e6e992c3482db68c855d4ea363b5de620e7e062af51a05be60931a745defdb4cc04a9df4936f699c5ce6d923', 'G8d9z7sEGNOjWKiY65', 1, NULL, '2012-08-31 12:58:25')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'w0k20IxoSwa5x1v18Z', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 12:58:25', 'Template1', 'Body', NULL, '2012-08-31 12:58:25') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 12:58:25', NULL, 'page7', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'v5vp4PHYzbIO8HaDZJe', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 1.1ms | ActiveRecord: 1.1ms)  (1.2ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '9306039e5fce8c320c661dee56a68f7353c321cb71b34cb995dd0e07308ea4b1e2e3ce989846d71ba491cbe39e45a01c263415c81a84ae56c58433f35bb58aaf' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'GlJ8HsVs6IbqHtN599F' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', 'f981c59073cb93b50e299ff406d9c1c735ca52d450d8d3d2c02082efe02d15202a2efae07de819ff90847a671ccef2c78df0b0bf2eb112e665c813d89131f3fd', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, 'PbTLcBuxsWqH6mhngR7N', 'tLprgBmiFcC911Sv5C2', '9306039e5fce8c320c661dee56a68f7353c321cb71b34cb995dd0e07308ea4b1e2e3ce989846d71ba491cbe39e45a01c263415c81a84ae56c58433f35bb58aaf', 'GlJ8HsVs6IbqHtN599F', 1, NULL, '2012-08-31 12:58:25')  (0.3ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'OGf1OxeHJaiHlmdxRG', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = '459UzB4bNd3ieLmThMId', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'aba55074ae3a4d364855cba42693702e4f3a56ad2f71bdbd0bb716f75591ace4e6f1fc6b1bea26b5a3fe62fafecd87d6d7b619203cd9333c981191b7bc00bc20' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'epmdhp8vyw8YsRRIB0fo' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', '86d14d36cf04ecd3e8eb60e2f8c81d4d172dda249a6430a8235cf21e540096db0044b5bee5befa4845cf0e9d546b5c9106cc8d1d567303a31238bf9ac769fb72', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, 'YunsUWEEtPx3oiSN8hA', 'wyJATrSuYHOmjUNzebr7', 'aba55074ae3a4d364855cba42693702e4f3a56ad2f71bdbd0bb716f75591ace4e6f1fc6b1bea26b5a3fe62fafecd87d6d7b619203cd9333c981191b7bc00bc20', 'epmdhp8vyw8YsRRIB0fo', 1, NULL, '2012-08-31 12:58:25')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = '0QIWJWCmdfa4gVB34rg', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'oQPtFHmpU4Ez7DoQloGT', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates`  Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'c80a951bccf3cfaf228b0519574e56af669d4d3ae7ff2a936838db79b74752c7a38c2c9710cb4ca268f6e5eb68199ff151c380cd39980f7500348d99be952208' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'zT3Fnb3JKlvMNXc257L7' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', '745159b664e819d61e7aead1df06cc38c1747fd87b374ce8b62aa3e0496180a4c251cdd00d21303523d897c54b08b760b7af964ae4590b71092733bd9ad77542', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, 'ThkwsTze9LnV4nimDOl', 'SiVmYhLcCew9yb1Znc5w', 'c80a951bccf3cfaf228b0519574e56af669d4d3ae7ff2a936838db79b74752c7a38c2c9710cb4ca268f6e5eb68199ff151c380cd39980f7500348d99be952208', 'zT3Fnb3JKlvMNXc257L7', 1, NULL, '2012-08-31 12:58:25')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'qsZTFb1jBd8qRmMlK7Vh', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'gOA4NLfRVKsZoyhRcSzH', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.9ms)  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f553d4dfd7ff6600a956cc481837cf281b54a0a5e226b84043550da809c84d09eacddd9d7bbf3f52ed1c232a9f4ca33d63680ee3581c66361831e7962deff4c4' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'idP2Y7N75Jx3jwAAgIXm' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', '52c4708dfbd5806c132838bbaf59bde5481d4c4f3d2c862af508310a4cdfead728ffd8e63b8b2135948b1864499c38c6413277b1ecdfc420e860a38782bbd069', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, '7rK93mO5bDdAXargjEJ', 'BAJIVh3mVIUiIotVuYk0', 'f553d4dfd7ff6600a956cc481837cf281b54a0a5e226b84043550da809c84d09eacddd9d7bbf3f52ed1c232a9f4ca33d63680ee3581c66361831e7962deff4c4', 'idP2Y7N75Jx3jwAAgIXm', 1, NULL, '2012-08-31 12:58:25')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'LDaely8HfhOBI3S90bU', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:25', NULL, 'page8', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#edit as HTML Parameters: {"id"=>"8"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'J2HzAwTx578EOeqCMm', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 8 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (8) SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 39ms (Views: 1.3ms | ActiveRecord: 1.4ms)  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '89f66b2d876cc2187f3ea84e6bfd0f5de50d68d740bf07971fee3faff1bea0c812f03dd4d14889d36ed28d83e6cbd3779b868eb81d3f61f3438913a3a8c02d11' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'wXk68Oy5AVPFFGkPKqJR' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:25', '6ca8c34c4c1882cd94b0f65a030be7b04fee8b30654906869437e53c854cb67cfc61c86579687edc11cc38b90e9ae4f6a04240edf6124e2e5687f33cf46ecf37', '2012-08-31 12:58:25', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:25', 'testuser', 1, '0oTwbsFfAaIZw6uOjx', 'IZSBC4GFs0r26KllUMso', '89f66b2d876cc2187f3ea84e6bfd0f5de50d68d740bf07971fee3faff1bea0c812f03dd4d14889d36ed28d83e6cbd3779b868eb81d3f61f3438913a3a8c02d11', 'wXk68Oy5AVPFFGkPKqJR', 1, NULL, '2012-08-31 12:58:25')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:25', `current_login_at` = '2012-08-31 12:58:25', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'TPMwHD7Y5Ro0tl82VDzD', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:25', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:25', NULL, 'page9', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page9", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil}, "id"=>"9"} SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:25', `perishable_token` = 'K2G5Rwtx3GDFdJQR0oA', `updated_at` = '2012-08-31 12:58:25' WHERE `spud_users`.`id` = 9  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (9)  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page9' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 12:58:26', NULL, '2012-08-31 12:58:26', 'page9') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_pages`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 25ms (ActiveRecord: 3.2ms) SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '96bff65aaebb46bc0abe7c530206fbc1552919ea7f7cede220ec6784c78ea8679af8745ea21fa5cf45c4784a7517f28fa18d173618e95e5b65ece6e8fd21b00c' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'lyaMuH4vH66X7G3L4IcP' LIMIT 1 SQL (0.4ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:26', '9eb75fec8f3cb0b5695b5440ca48a9e39a23fdd917ca5bd1e9ee9cb23a71b810416d017954b5374f72ea012111e9c07b25eca1af8121393301df73ab00c9e16b', '2012-08-31 12:58:26', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:26', 'testuser', 1, 'KLbFlSs7shaqpCFMGN8J', '9y3o2kXsSD7aaTF459YF', '96bff65aaebb46bc0abe7c530206fbc1552919ea7f7cede220ec6784c78ea8679af8745ea21fa5cf45c4784a7517f28fa18d173618e95e5b65ece6e8fd21b00c', 'lyaMuH4vH66X7G3L4IcP', 1, NULL, '2012-08-31 12:58:26')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:26', `current_login_at` = '2012-08-31 12:58:26', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:26', `perishable_token` = 'C0UBNYY85l4qygrJot', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'page10', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page10", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil}, "id"=>"10"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:26', `perishable_token` = 'YzYzNwFUeYmkSRYddD47', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (10)  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page10' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 12:58:26', NULL, '2012-08-31 12:58:26', 'page10') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 13ms (ActiveRecord: 2.3ms)  (0.4ms) ROLLBACK  (0.2ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'b7e53aca4a082faa3624629e8520800d679aa73ec913aa072d8fb6c9f12f9d7064960baeb97d80760882144ba89dcf277bbdfaba0842093069d970664ab140c6' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'V1RD6tXqD4ZSVW6zzqP' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:26', '2f71320ebcbbce6fe75843d9ac24765ada33adde678abb05833ef29c2c794732a474b9e8b71efa470ab0e7954dba14fd11819bf92b3009164fc3a05dc0902ae8', '2012-08-31 12:58:26', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:26', 'testuser', 1, 'TTFZ30wWYXSs4goKFVpG', 'w6qGFQaj2EV3hJwfs3', 'b7e53aca4a082faa3624629e8520800d679aa73ec913aa072d8fb6c9f12f9d7064960baeb97d80760882144ba89dcf277bbdfaba0842093069d970664ab140c6', 'V1RD6tXqD4ZSVW6zzqP', 1, NULL, '2012-08-31 12:58:26')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:26', `current_login_at` = '2012-08-31 12:58:26', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:26', `perishable_token` = 'jJsiHnvzP8v97RDrSIco', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'page11', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages`  Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"11"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 11 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:26', `perishable_token` = 'LQKGMe1qgM5QE0D6NSZn', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (11)  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 11 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 11 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 11ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM `spud_pages`   (2.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '828b6524c9e7b277933b7dc961ef1bc0dcb72e4cfaf6d561f2a75821f99adb9161e97ed50a4b98d0904f9165d2ed018b420dba4f8c129519e209cb6fc1165868' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'nlM5zXp7aa3tVK8aGOTr' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 12:58:26', '8dd517800eaab49ef2877f8bbfb1b8998362cf8a6a7325ae15d03f48d62c15b93b75898e0712807f475d4fd7d37b0d1311b803fb8612f37081af8be3cd13d721', '2012-08-31 12:58:26', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 12:58:26', 'testuser', 1, 'WzvqpR7uaHFmyNoN5qBe', 'hbHLdCAI5vksYKJZ7SjI', '828b6524c9e7b277933b7dc961ef1bc0dcb72e4cfaf6d561f2a75821f99adb9161e97ed50a4b98d0904f9165d2ed018b420dba4f8c129519e209cb6fc1165868', 'nlM5zXp7aa3tVK8aGOTr', 1, NULL, '2012-08-31 12:58:26')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 12:58:26', `current_login_at` = '2012-08-31 12:58:26', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 12:58:26', `perishable_token` = 'qlIQiQv0fSyqY5aWVNzz', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page12' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page12' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'Page12', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'page12', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages`  Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"23532"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 12 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 12:58:26', `perishable_token` = 'H2hsVR92KQoc5xZKcdSn', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 23532 LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages`   (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.4ms)  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page13' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'Page13', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page14' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page15' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page15' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page15' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'Page15', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'page15', 0, 0) SQL (0.2ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 12:58:26', NULL, NULL, 15, '2012-08-31 12:58:26')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 15 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 15  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 12:58:26', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.4ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 12:58:26', NULL, 'parent/page-2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'about', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 19) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 21) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (21, 'SpudPage', '2012-08-31 12:58:26', NULL, '2012-08-31 12:58:26', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_pages`.`id` = 21  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 21 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 12:58:26', NULL, '2012-08-31 12:58:26', 'permapage') SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_pages`.`id` = 22  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 22 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 12:58:26', NULL, '2012-08-31 12:58:26', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 24) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (24, 'SpudPage', '2012-08-31 12:58:26', NULL, '2012-08-31 12:58:26', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 12:58:26' WHERE `spud_pages`.`id` = 24  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 12:58:26', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 25 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 24 LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:58:26', 'test', 'Body', NULL, '2012-08-31 12:58:26') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 12:58:26', 'Template4', 'Body', NULL, '2012-08-31 12:58:26') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page16' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page16' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page16' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 12:58:26', NULL, 'html', 1, NULL, NULL, 'Page16', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 12:58:26', NULL, 'page16', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.2ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK Creating scope :public. Overwriting existing method SpudPage.public.  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.1ms) SELECT DATABASE() as db  (2.2ms) select table_name from information_schema.views where table_schema = 'spud_cms_test'  (1.1ms) TRUNCATE TABLE `spud_admin_permissions`;  (0.8ms) TRUNCATE TABLE `spud_menu_items`;  (0.7ms) TRUNCATE TABLE `spud_menus`;  (0.5ms) TRUNCATE TABLE `spud_page_partial_revisions`;  (0.8ms) TRUNCATE TABLE `spud_page_partials`;  (0.6ms) TRUNCATE TABLE `spud_pages`;  (1.0ms) TRUNCATE TABLE `spud_permalinks`;  (0.9ms) TRUNCATE TABLE `spud_templates`;  (0.9ms) TRUNCATE TABLE `spud_user_settings`;  (1.2ms) TRUNCATE TABLE `spud_users`;  (0.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '8fcc52df10c88d8751d14337178a0f5b71df311f0a20c296d8e618b3c05e70bb9b714350b43e37674991d8999f92a3a0ab0498578fb3aa623766e91a89e681ef' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '0TcwhefGfI628En1qCQ' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:12', '19bfff2362e51bc5758fc474425ffc6197cd389acfc3464fdccc22f7bf8a0e49991a0883c0e1329001fe4d2d2b35927ad61fd6b2aa0ce09ebc4ec7c74cf4b51b', '2012-08-31 13:00:12', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:12', 'testuser', 1, 'kX8HD7O9cwm4BWzDWPn', '9euaE61CWN2LvYgDieK', '8fcc52df10c88d8751d14337178a0f5b71df311f0a20c296d8e618b3c05e70bb9b714350b43e37674991d8999f92a3a0ab0498578fb3aa623766e91a89e681ef', '0TcwhefGfI628En1qCQ', 1, NULL, '2012-08-31 13:00:12')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:12', `current_login_at` = '2012-08-31 13:00:12', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:12', `perishable_token` = 'KUTLVMVu37n37noOhSwG', `updated_at` = '2012-08-31 13:00:12' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:12', NULL, 'html', NULL, NULL, 'Page1', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:12', NULL, 'page1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:12', NULL, 'html', NULL, NULL, 'Page2', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:12', NULL, 'page2', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 1 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:12', `perishable_token` = 'FmLSsU3GQ1PXHMLITYl', `updated_at` = '2012-08-31 13:00:12' WHERE `spud_users`.`id` = 1  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 0.6ms)  (0.4ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '554588516c1c6e1dc471577dde8dd23d4c837b9818c3966305ebda04b66557a8cdb86d7df0604d9ce7f1b21402d2f930a211ed03da8dc4c787ff9b54b1853a75' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'hJZ4Nwv4aK6uL5HasVeh' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:12', '2ffa29ae214c4e9caed93d55108f7d958b20d1ec60edd6869e988bdf8cc338bfc6dc11b08685d398abac29e678abe6c0bffbf719341f4bbe930fd13bbc8b526a', '2012-08-31 13:00:12', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:12', 'testuser', 1, 'MR96shZU2MVQCneTnmu', 'wKBCGqdexsZiCS8kaJ4D', '554588516c1c6e1dc471577dde8dd23d4c837b9818c3966305ebda04b66557a8cdb86d7df0604d9ce7f1b21402d2f930a211ed03da8dc4c787ff9b54b1853a75', 'hJZ4Nwv4aK6uL5HasVeh', 1, NULL, '2012-08-31 13:00:12')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:12', `current_login_at` = '2012-08-31 13:00:12', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:12', `perishable_token` = '2WqJ5Qg52yjRpxQ9kx7', `updated_at` = '2012-08-31 13:00:12' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page3' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page3' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page3' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:12', NULL, 'html', NULL, NULL, 'Page3', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:12', NULL, 'page3', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page4' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page4' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page4' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:12', NULL, 'html', NULL, NULL, 'Page4', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:12', NULL, 'page4', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page5' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page5' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 1) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page5' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:12', NULL, 'html', NULL, NULL, 'Page5', NULL, NULL, NULL, 1, NULL, 1, NULL, '2012-08-31 13:00:12', NULL, 'page5', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#index as HTML SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 2 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:12', `perishable_token` = 'X8mb44284Z1PO94XQ1ph', `updated_at` = '2012-08-31 13:00:12' WHERE `spud_users`.`id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '6cb079037d74b8b25fcf17e53ba5ff578c5bc0e6aa00cedc7635be4188779fb6598430084d9dd4ccaed8de13984c39456af5f0ba1a60dcf0d237b25f6d6d5ac3' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'sCc2XXGYhv7cwSUjCo1' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', 'be871053a376848471c5b0a9a2b0613d446809e45419e3fe44670c0212c327525a40d01226d01d9e371ff9c7fd91f6317ce9f1b25a3e7ade232f37f08596ce9a', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'RhHKZunOpSOUokF7g51k', 'dUBj3ZMwokxmH91KNJ9w', '6cb079037d74b8b25fcf17e53ba5ff578c5bc0e6aa00cedc7635be4188779fb6598430084d9dd4ccaed8de13984c39456af5f0ba1a60dcf0d237b25f6d6d5ac3', 'sCc2XXGYhv7cwSUjCo1', 1, NULL, '2012-08-31 13:00:13')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'SEONWeiAV3lRgNRSzCy', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page6' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page6' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page6' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page6', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'page6', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"6"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 3 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'Y07EUXQ8CVYzezzSccq1', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 6 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (6) Completed 200 OK in 21ms (Views: 1.5ms | ActiveRecord: 3.1ms)  (1.0ms) ROLLBACK  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.5ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'bd99d9e83c952fb73761df47acbbc20d0da5fa21bb560b130aae02a53f1fcbb40c87bee43420883b3935509feaed56ff8b0303c5f689f80350db302be86b8964' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'dTAtDxv1mjgg7pORQj' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', '4b41dfe0a31eadcb79842d7e1b7e930e80207068993e622890dbf660025127e2c14a7217e94c2fa7e8651342df0c4e2daa77d0492697cfc51416016c644900da', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'BIA1fMWN1tkHFUcAeZDE', '1trytSF4mFkGIt2vEUTP', 'bd99d9e83c952fb73761df47acbbc20d0da5fa21bb560b130aae02a53f1fcbb40c87bee43420883b3935509feaed56ff8b0303c5f689f80350db302be86b8964', 'dTAtDxv1mjgg7pORQj', 1, NULL, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = '4VxCkVDjPOaQvbjvW9XQ', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template1' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('content_left', NULL, '2012-08-31 13:00:13', 'Template1', 'Body', NULL, '2012-08-31 13:00:13') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page7' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page7' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page7' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page7', NULL, NULL, NULL, 1, NULL, NULL, 1, '2012-08-31 13:00:13', NULL, 'page7', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML Parameters: {"id"=>"7"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 4 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'WENCIIdIOTwJJHXPcay', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 4  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 7 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (7) SpudTemplate Load (0.2ms) SELECT `spud_templates`.* FROM `spud_templates` WHERE `spud_templates`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 1.1ms | ActiveRecord: 1.3ms)  (1.9ms) ROLLBACK  (0.3ms) ROLLBACK  (0.1ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'f735a83ad5d81e41d2a4f3fad4f2fa8c888b43300b5c23a00326e9e3d5f97ca7c57f8437078b908cf1cd2dbe91c67c358bb7e79b92cf5cb287780248603123cd' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'mlOKMlKhrtlnTywXg89' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', '9a559e23eb6df7647aa3db30722aa38a9ebe811bdf61ee32b0bdf63b8fcb398b217ee013244e459a9c975f30e71c8598500f7793eec7d3dea3c048d9e20f4034', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'mUNqJLukdgfpJFeAcu4u', 'eSAHcW47yACkvU1kvUrW', 'f735a83ad5d81e41d2a4f3fad4f2fa8c888b43300b5c23a00326e9e3d5f97ca7c57f8437078b908cf1cd2dbe91c67c358bb7e79b92cf5cb287780248603123cd', 'mlOKMlKhrtlnTywXg89', 1, NULL, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'WObLPZXrPD0xkHVI7jI', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#show as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 5 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.3ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'ziHzordBGTTOvlYQ2uU', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 5  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` IS NULL LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.5ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3d44cb8e825a26673fedcb463d879fb3500fa1e88209c97feda5619911cab8e06753edf9f8e2e8ecd8574896e44b5f094cd34920d02a3d2237b988fc0a62739e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'KzpX0Tpj77XoonNHLqf' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', '9931258c8979d3bd29915a2868a9aa74ec7e9f28eb0bfec517d873c41a56d85c3281233a697d25ea20f6f4e5565b272cced80fc6be8171342bde0eebd46198b2', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'Ye0np9uVW1WZwN7IZE', 'FmyVkP3v3Ecqq6b2kG45', '3d44cb8e825a26673fedcb463d879fb3500fa1e88209c97feda5619911cab8e06753edf9f8e2e8ecd8574896e44b5f094cd34920d02a3d2237b988fc0a62739e', 'KzpX0Tpj77XoonNHLqf', 1, NULL, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'dA4kTiHEol1zsB0CU5ga', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 6 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'VolLy6bxs7ViHHyrQOE', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 6  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates`  Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 1.0ms)  (0.9ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '383e4947ce08242ca1772eaed6a5276dbeb5114e23375c54eec7e20201032c2aec9eaa519a7a86d367678a264dd57d1d82dfae29b1918065c30eef6da13d446d' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'g9FISM0VmQPIRJNtdsXE' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', 'b224256be29eebc4252aa7552d272e5681eddad976b36e32ea2098acc45b603dc5afe4bb2b7328e0a4b44ce0808ea155ecb372e90a7f1b61eb5695486397cece', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'hefkK2Zk50nlt8Nr7', 'b4VqKjEuqG4bghwi8OZH', '383e4947ce08242ca1772eaed6a5276dbeb5114e23375c54eec7e20201032c2aec9eaa519a7a86d367678a264dd57d1d82dfae29b1918065c30eef6da13d446d', 'g9FISM0VmQPIRJNtdsXE', 1, NULL, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'fV3Am6Vbe4uDcrVkO089', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#new as HTML SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 7 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'tX2GO5o3jTSkRcEoL30G', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 7  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 0.7ms)  (1.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '92d215021c3eb29ca9e96f0834d466120c9b8cf35a6c10da123ff23def0d3d83a7ced89efc37f06a13893f30d904da93ebe1517307f1c1d87309a810f619f004' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '9zoiJoIgPHJCLgQfD7t' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', '7bcf210d26017a87a7bcd4e43c13d5369e2d1c924aa186d85cbfbd170d5e5b18291400260b196542868c362f30efa455e2efc07e7f0f5f41ebb413cc50914814', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'RnMNX0UKQntN1DipafBO', 'U9FbKqOFnHR7Zay5Sj6w', '92d215021c3eb29ca9e96f0834d466120c9b8cf35a6c10da123ff23def0d3d83a7ced89efc37f06a13893f30d904da93ebe1517307f1c1d87309a810f619f004', '9zoiJoIgPHJCLgQfD7t', 1, NULL, '2012-08-31 13:00:13')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'TYOY1Qwc2zVUwbHALy11', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 8  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page8' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page8' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page8' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page8', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'page8', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#edit as HTML Parameters: {"id"=>"8"} SpudUser Load (0.4ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 8 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'nLvM9sbnsIRlB86j2elp', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 8  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 8 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (8) SpudTemplate Load (0.1ms) SELECT `spud_templates`.* FROM `spud_templates` Completed 200 OK in 39ms (Views: 1.3ms | ActiveRecord: 1.3ms)  (0.9ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fad251c3bf73ec59b67e9ce3bcb0801751c049554c18e6c0ce140ff89340d7675a51cf258fc8da5450b196874c0b891c89da88a9247c70e839a71660683cf9a3' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'hQ1cm7JucqJPN4NeCZES' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', '0c2d56f4caac7db11e4e885895545619766bea5e7140d6e70cf34032a5b603cf2d3353177574e883c747d640c9bab7a50ee02f13aac848d0e4d71740ff56ddfb', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, '4NK9uCK6IpgXujzwPLWB', 'KSARXrLZq01jNwl76OUB', 'fad251c3bf73ec59b67e9ce3bcb0801751c049554c18e6c0ce140ff89340d7675a51cf258fc8da5450b196874c0b891c89da88a9247c70e839a71660683cf9a3', 'hQ1cm7JucqJPN4NeCZES', 1, NULL, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'Zu24kOHsQLYKvcUtCQMG', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 9  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page9' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page9' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page9' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page9', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'page9', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page9", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil}, "id"=>"9"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 9 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'S5OOwnDFM0KluP7sIcu', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (9)  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 9) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1 SpudPermalink Exists (0.4ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page9' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (9, 'SpudPage', '2012-08-31 13:00:13', NULL, '2012-08-31 13:00:13', 'page9') SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 9 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_pages`.`id` = 9  (0.2ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 25ms (ActiveRecord: 3.1ms) SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 9 LIMIT 1  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '3fcd4064b0f66fd3ec2da093203db73fc39737b9897aadc0ada845fe6aec9ba5caf0fbe2a09aa716a07b5b8cd8c3a4cf2df682fc3ba5ecd27725c5069c64d682' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'AZ8sYMB3QbwKyC7ZLYAF' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', '8948ed31fbf4803cbe11ffdc403f3ea8da414330a5660f3b8aa913685156d275ec6d59c77a6162cdffb028074874b62e2628edd0aaa564607d4d1d17c342e841', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'QDohD5UqI0OTketQ7isn', 'mIQkGSRUc02kEzdnyZ4', '3fcd4064b0f66fd3ec2da093203db73fc39737b9897aadc0ada845fe6aec9ba5caf0fbe2a09aa716a07b5b8cd8c3a4cf2df682fc3ba5ecd27725c5069c64d682', 'AZ8sYMB3QbwKyC7ZLYAF', 1, NULL, '2012-08-31 13:00:13')  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = '14nqDa29sEVpOXKFGUXI', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 10  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page10' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page10' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page10' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page10', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'page10', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 Processing by Spud::Admin::PagesController#update as HTML Parameters: {"spud_page"=>{"name"=>"Adam", "url_name"=>"page10", "publish_at"=>nil, "created_by"=>nil, "updated_by"=>nil, "format"=>"html", "spud_page_id"=>nil, "meta_description"=>nil, "meta_keywords"=>nil, "page_order"=>nil, "template_id"=>nil, "visibility"=>"0", "published"=>true, "use_custom_url_name"=>false, "notes"=>nil}, "id"=>"10"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 10 LIMIT 1  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'H9SeDwJg6iubsdXhyEoz', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 10 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (10)  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 10) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'adam' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'page10' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (10, 'SpudPage', '2012-08-31 13:00:13', NULL, '2012-08-31 13:00:13', 'page10') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Adam' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'adam' AND `spud_pages`.`id` != 10 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'Adam', `url_name` = 'adam', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_pages`.`id` = 10  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 13ms (ActiveRecord: 2.3ms)  (0.5ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudUser Exists (0.3ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY 'fb3077f9a0ba21e565c170cf452b8f1012e302746a037e8ff0ed564bfa8b04f733f903e1919aa04327d5e80776f412111b6372501eec98ac72f844d24a839b2e' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY 'Iws6kphsrQHmqMbfTRv' LIMIT 1 SQL (0.3ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', '2880c440bc537f2c9593675ea58089efdc7f0de04049613e09d27e30f33e47b30a3af2be0d98a4ba21329cbf4418d4ef4dc914957a731a09d4d76fa3f60d0391', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, 'ad7h2eA2HNNxwjAF2vG', 'uQtZWu5OWya5rNGejiD', 'fb3077f9a0ba21e565c170cf452b8f1012e302746a037e8ff0ed564bfa8b04f733f903e1919aa04327d5e80776f412111b6372501eec98ac72f844d24a839b2e', 'Iws6kphsrQHmqMbfTRv', 1, NULL, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'gG51Gok71nVwgI0xX', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page11' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page11' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page11' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page11', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'page11', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages`  Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"11"} SpudUser Load (0.2ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 11 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'IpLmey4itQm38aLuyqZq', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 11 LIMIT 1 SpudPagePartial Load (0.2ms) SELECT `spud_page_partials`.* FROM `spud_page_partials` WHERE `spud_page_partials`.`spud_page_id` IN (11)  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 11 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 11 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.2ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 11  (0.1ms) RELEASE SAVEPOINT active_record_2 Redirected to http://test.host/spud/admin/pages Completed 302 Found in 11ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM `spud_pages`   (3.2ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_2 SpudUser Exists (0.4ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`email` = 'test@testuser.com' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`login` = 'testuser' LIMIT 1 SpudUser Exists (0.2ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`persistence_token` = BINARY '1eeda0186c85fbf218a9630a60d016a9fdcacf23814f58d935d401b91937d3280cc33720726a0c918f5e391470b72a6cfb06a98a66911cdeb062f1ba08e02c23' LIMIT 1 SpudUser Exists (0.1ms) SELECT 1 FROM `spud_users` WHERE `spud_users`.`single_access_token` = BINARY '25UwrMczyVvGMx5JDHl' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_users` (`created_at`, `crypted_password`, `current_login_at`, `current_login_ip`, `email`, `failed_login_count`, `first_name`, `last_login_at`, `last_login_ip`, `last_name`, `last_request_at`, `login`, `login_count`, `password_salt`, `perishable_token`, `persistence_token`, `single_access_token`, `super_admin`, `time_zone`, `updated_at`) VALUES ('2012-08-31 13:00:13', 'fe7ce26f1795a6a156c25f214e11c329df3c193c885483e862d1c153868d0128b4110019fc4fa524359a7e1d032e278b6ea53bf8269eaa22236a02668545bf55', '2012-08-31 13:00:13', '0.0.0.0', 'test@testuser.com', 0, NULL, NULL, NULL, NULL, '2012-08-31 13:00:13', 'testuser', 1, '0t0DyHyJclmzkBOaA7Qz', 'POKqpvmyIxQAe48uqyw5', '1eeda0186c85fbf218a9630a60d016a9fdcacf23814f58d935d401b91937d3280cc33720726a0c918f5e391470b72a6cfb06a98a66911cdeb062f1ba08e02c23', '25UwrMczyVvGMx5JDHl', 1, NULL, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `login_count` = 2, `last_login_at` = '2012-08-31 13:00:13', `current_login_at` = '2012-08-31 13:00:13', `last_login_ip` = '0.0.0.0', `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'Ypm2tTjb78uEcZwAon3', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 12  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page12' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page12' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page12' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page12', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'page12', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_pages`  Processing by Spud::Admin::PagesController#destroy as HTML Parameters: {"id"=>"23532"} SpudUser Load (0.3ms) SELECT `spud_users`.* FROM `spud_users` WHERE `spud_users`.`id` = 12 LIMIT 1  (0.2ms) SAVEPOINT active_record_2  (0.2ms) UPDATE `spud_users` SET `last_request_at` = '2012-08-31 13:00:13', `perishable_token` = 'vJHd7WeUtct3gbtENsr1', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_users`.`id` = 12  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 23532 LIMIT 1 Redirected to http://test.host/spud/admin/pages Filter chain halted as :load_page rendered or redirected Completed 302 Found in 4ms (ActiveRecord: 0.9ms)  (0.2ms) SELECT COUNT(*) FROM `spud_pages`   (0.7ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as XML SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.3ms) SpudPage Load (0.4ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN Processing by Spud::Cms::SitemapsController#show as HTML SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`published` = 1 AND `spud_pages`.`visibility` = 0 ORDER BY spud_page_id Completed 406 Not Acceptable in 2ms (ActiveRecord: 0.2ms)  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY '' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY '' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page13' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page13', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'test', 1, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page14' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test' LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'test', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'test-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'test-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page15' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page15' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page15' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page15', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'page15', 0, 0) SQL (0.3ms) INSERT INTO `spud_page_partials` (`content`, `created_at`, `format`, `name`, `spud_page_id`, `updated_at`) VALUES (NULL, '2012-08-31 13:00:13', NULL, NULL, 15, '2012-08-31 13:00:13')  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`   (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`spud_page_id` = 15 SQL (0.1ms) DELETE FROM `spud_page_partials` WHERE `spud_page_partials`.`id` = 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 15 AND `spud_permalinks`.`attachment_type` = 'SpudPage' SQL (0.1ms) DELETE FROM `spud_pages` WHERE `spud_pages`.`id` = 15  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_page_partials`  (0.7ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'parent', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'parent', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 1' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page 1', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 13:00:13', NULL, 'parent/page-1', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'parent/page-2' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page 2' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 16) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'parent/page-2' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'Page 2', NULL, NULL, NULL, 1, NULL, 16, NULL, '2012-08-31 13:00:13', NULL, 'parent/page-2', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'about', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'about', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'about/test' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'test' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` = 19) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'about/test' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.2ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'testimonials', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'testimonials', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'testimonials-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'testimonials' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'testimonials-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'another', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'another', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 21) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'again' LIMIT 1 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'another' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (21, 'SpudPage', '2012-08-31 13:00:13', NULL, '2012-08-31 13:00:13', 'another') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'again' AND `spud_pages`.`id` != 21 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'again', `url_name` = 'again', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_pages`.`id` = 21  (0.0ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another' LIMIT 1 SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 21 LIMIT 1 SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'another-1' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'another' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'another-1' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'permapage', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'permapage', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage-new' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 13:00:13', NULL, '2012-08-31 13:00:13', 'permapage') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage-new' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) UPDATE `spud_pages` SET `name` = 'permapage new', `url_name` = 'permapage-new', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_pages`.`id` = 22  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks`   (0.2ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage' SpudPage Load (0.3ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 22) SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'permapage' LIMIT 1 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 22 LIMIT 1  (0.1ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_permalinks` WHERE `spud_permalinks`.`id` = 4  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPermalink Exists (0.3ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'permapage-new' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (22, 'SpudPage', '2012-08-31 13:00:13', NULL, '2012-08-31 13:00:13', 'permapage-new')  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'permapage' AND `spud_pages`.`id` != 22 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM `spud_permalinks` WHERE `spud_permalinks`.`attachment_id` = 22 AND `spud_permalinks`.`attachment_type` = 'SpudPage' AND `spud_permalinks`.`url_name` = 'permapage'  (0.6ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'original', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.2ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'original', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'original', 0, 0)  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 24) SpudPermalink Load (0.3ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original2' LIMIT 1 SpudPermalink Exists (0.2ms) SELECT 1 FROM `spud_permalinks` WHERE (`spud_permalinks`.`url_name` = BINARY 'original' AND `spud_permalinks`.`site_id` IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO `spud_permalinks` (`attachment_id`, `attachment_type`, `created_at`, `site_id`, `updated_at`, `url_name`) VALUES (24, 'SpudPage', '2012-08-31 13:00:13', NULL, '2012-08-31 13:00:13', 'original') SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.3ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'original2' AND `spud_pages`.`id` != 24 AND `spud_pages`.`site_id` IS NULL) LIMIT 1  (0.3ms) UPDATE `spud_pages` SET `name` = 'original2', `url_name` = 'original2', `updated_at` = '2012-08-31 13:00:13' WHERE `spud_pages`.`id` = 24  (0.2ms) RELEASE SAVEPOINT active_record_2  (0.1ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'new' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'new' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', NULL, NULL, 'new', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2012-08-31 13:00:13', NULL, 'new', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 25 LIMIT 1 SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'original' LIMIT 1 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 24 LIMIT 1  (0.3ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.1ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template2' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.2ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template3' LIMIT 1  (0.1ms) ROLLBACK  (0.1ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN SpudTemplate Exists (0.3ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY '' LIMIT 1  (0.1ms) ROLLBACK  (0.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1 SQL (0.2ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 13:00:13', 'test', 'Body', NULL, '2012-08-31 13:00:13') SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 2  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'test' LIMIT 1  (0.4ms) ROLLBACK  (0.0ms) ROLLBACK  (0.0ms) BEGIN  (0.0ms) BEGIN  (0.0ms) SAVEPOINT active_record_2 SpudTemplate Exists (0.1ms) SELECT 1 FROM `spud_templates` WHERE `spud_templates`.`name` = BINARY 'Template4' LIMIT 1 SQL (0.1ms) INSERT INTO `spud_templates` (`base_layout`, `content`, `created_at`, `name`, `page_parts`, `site_id`, `updated_at`) VALUES ('application', NULL, '2012-08-31 13:00:13', 'Template4', 'Body', NULL, '2012-08-31 13:00:13') SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`template_id` = 3  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL AND (id != 1) SpudPermalink Load (0.1ms) SELECT `spud_permalinks`.* FROM `spud_permalinks` WHERE `spud_permalinks`.`site_id` IS NULL AND `spud_permalinks`.`url_name` = 'page16' LIMIT 1 SpudPage Exists (0.2ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`name` = BINARY 'Page16' AND `spud_pages`.`site_id` IS NULL AND `spud_pages`.`spud_page_id` IS NULL) LIMIT 1 SpudPage Exists (0.1ms) SELECT 1 FROM `spud_pages` WHERE (`spud_pages`.`url_name` = BINARY 'page16' AND `spud_pages`.`site_id` IS NULL) LIMIT 1 SQL (0.1ms) INSERT INTO `spud_pages` (`created_at`, `created_by`, `format`, `id`, `meta_description`, `meta_keywords`, `name`, `notes`, `page_order`, `publish_at`, `published`, `site_id`, `spud_page_id`, `template_id`, `updated_at`, `updated_by`, `url_name`, `use_custom_url_name`, `visibility`) VALUES ('2012-08-31 13:00:13', NULL, 'html', 1, NULL, NULL, 'Page16', NULL, NULL, NULL, 1, NULL, NULL, 3, '2012-08-31 13:00:13', NULL, 'page16', 0, 0)  (0.1ms) RELEASE SAVEPOINT active_record_2  (0.0ms) SAVEPOINT active_record_2 SQL (0.1ms) DELETE FROM `spud_templates` WHERE `spud_templates`.`id` = 3  (0.1ms) RELEASE SAVEPOINT active_record_2 SpudPage Load (0.1ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.1ms) ROLLBACK