Connecting to database specified by database.yml  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`   (81.1ms) DROP DATABASE IF EXISTS `iugusdk_test`  (0.2ms) CREATE DATABASE `iugusdk_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (79.4ms) CREATE TABLE `account_domains` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `url` varchar(255), `verified` tinyint(1), `primary` tinyint(1)) ENGINE=InnoDB  (227.3ms) CREATE TABLE `account_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `account_user_id` int(11)) ENGINE=InnoDB  (151.2ms) CREATE TABLE `account_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `user_id` int(11)) ENGINE=InnoDB  (173.3ms) CREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime, `updated_at` datetime, `name` varchar(255), `subscription_id` int(11), `subdomain` varchar(255)) ENGINE=InnoDB  (79.1ms) CREATE TABLE `delayed_jobs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `priority` int(11) DEFAULT 0, `attempts` int(11) DEFAULT 0, `handler` text, `last_error` text, `run_at` datetime, `locked_at` datetime, `failed_at` datetime, `locked_by` varchar(255), `queue` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB  (186.2ms) CREATE INDEX `delayed_jobs_priority` ON `delayed_jobs` (`priority`, `run_at`)  (120.2ms) CREATE TABLE `social_accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `social_id` int(11), `user_id` int(11), `provider` varchar(255), `token` varchar(255), `secret` varchar(255)) ENGINE=InnoDB  (164.0ms) CREATE TABLE `user_invitations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `invited_by` int(11), `email` varchar(255), `sent_at` datetime, `account_id` int(11), `token` varchar(255), `roles` varchar(255)) ENGINE=InnoDB  (125.3ms) CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `created_at` datetime, `updated_at` datetime, `birthdate` date, `name` varchar(255), `locale` varchar(255)) ENGINE=InnoDB  (188.6ms) CREATE UNIQUE INDEX `index_users_on_confirmation_token` ON `users` (`confirmation_token`)  (108.9ms) CREATE INDEX `index_users_on_email` ON `users` (`email`)  (132.2ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)  (176.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (169.6ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.1ms) SELECT version FROM `schema_migrations`  (1.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120719162426') Connecting to database specified by database.yml  (83.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (268.8ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateAccount (20120528164634)  (97.7ms) CREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120528164634') Migrating to AddDeviseToUsers (20120529134109)  (152.1ms) CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (129.8ms) CREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)  (111.3ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)  (117.0ms) CREATE UNIQUE INDEX `index_users_on_confirmation_token` ON `users` (`confirmation_token`)  (1.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529134109') Migrating to AddBirthdateAndNameToUser (20120529162901)  (145.8ms) ALTER TABLE `users` ADD `birthdate` date  (151.3ms) ALTER TABLE `users` ADD `name` varchar(255)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529162901') Migrating to AddNameAndSubscriptionIdAndUserIdToAccount (20120529174755)  (106.1ms) ALTER TABLE `accounts` ADD `name` varchar(255)  (124.4ms) ALTER TABLE `accounts` ADD `subscription_id` int(11)  (99.8ms) ALTER TABLE `accounts` ADD `user_id` int(11)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529174755') Migrating to CreateAccountUsers (20120529180814)  (124.5ms) CREATE TABLE `account_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `user_id` int(11)) ENGINE=InnoDB  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120529180814') Migrating to RemoveUserIdFromAccounts (20120530114709)  (119.3ms) ALTER TABLE `accounts` DROP `user_id`  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120530114709') Migrating to CreateAccountRoles (20120531171438)  (119.0ms) CREATE TABLE `account_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `account_user_id` int(11)) ENGINE=InnoDB  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120531171438') Migrating to AddLocaleToUser (20120604131034)  (114.9ms) ALTER TABLE `users` ADD `locale` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120604131034') Migrating to CreateSocialAccount (20120605142527)  (94.3ms) CREATE TABLE `social_accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `social_id` int(11), `user_id` int(11), `provider` varchar(255), `token` varchar(255), `secret` varchar(255)) ENGINE=InnoDB  (1.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120605142527') Migrating to SetLocale (20120612141130) SQL (0.3ms) UPDATE `users` SET locale = 'en' WHERE `users`.`locale` IS NULL  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120612141130') Migrating to RemoveUniqueFromUserEmail (20120613173114)  (95.9ms) DROP INDEX `index_users_on_email` ON `users`  (162.1ms) CREATE INDEX `index_users_on_email` ON `users` (`email`)  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120613173114') Migrating to CreateDelayedJobs (20120615180728)  (95.0ms) CREATE TABLE `delayed_jobs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `priority` int(11) DEFAULT 0, `attempts` int(11) DEFAULT 0, `handler` text, `last_error` text, `run_at` datetime, `locked_at` datetime, `failed_at` datetime, `locked_by` varchar(255), `queue` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (181.6ms) CREATE INDEX `delayed_jobs_priority` ON `delayed_jobs` (`priority`, `run_at`)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120615180728') Migrating to CreateUserInvitations (20120629154429)  (182.3ms) CREATE TABLE `user_invitations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `invited_by` int(11), `email` varchar(255), `sent_at` datetime, `account_id` int(11)) ENGINE=InnoDB  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120629154429') Migrating to AddTokenToUserInvitations (20120629195345)  (155.6ms) ALTER TABLE `user_invitations` ADD `token` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120629195345') Migrating to AddRolesToUserInvitations (20120705202827)  (94.5ms) ALTER TABLE `user_invitations` ADD `roles` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120705202827') Migrating to CreateAccountDomain (20120716145846)  (127.2ms) CREATE TABLE `account_domains` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `url` varchar(255), `verified` tinyint(1), `primary` tinyint(1)) ENGINE=InnoDB  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120716145846') Migrating to AddSubdomainToAccount (20120719162426)  (115.4ms) ALTER TABLE `accounts` ADD `subdomain` varchar(255)  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120719162426')  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`   (0.4ms) DROP DATABASE IF EXISTS `iugusdk_test`  (0.2ms) CREATE DATABASE `iugusdk_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`  (54.8ms) CREATE TABLE `account_domains` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `url` varchar(255), `verified` tinyint(1), `primary` tinyint(1)) ENGINE=InnoDB  (257.1ms) CREATE TABLE `account_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `account_user_id` int(11)) ENGINE=InnoDB  (106.9ms) CREATE TABLE `account_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `account_id` int(11), `user_id` int(11)) ENGINE=InnoDB  (117.9ms) CREATE TABLE `accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(255), `subscription_id` int(11), `subdomain` varchar(255)) ENGINE=InnoDB  (138.2ms) CREATE TABLE `delayed_jobs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `priority` int(11) DEFAULT 0, `attempts` int(11) DEFAULT 0, `handler` text, `last_error` text, `run_at` datetime, `locked_at` datetime, `failed_at` datetime, `locked_by` varchar(255), `queue` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (117.6ms) CREATE INDEX `delayed_jobs_priority` ON `delayed_jobs` (`priority`, `run_at`)  (170.1ms) CREATE TABLE `social_accounts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `social_id` int(11), `user_id` int(11), `provider` varchar(255), `token` varchar(255), `secret` varchar(255)) ENGINE=InnoDB  (164.0ms) CREATE TABLE `user_invitations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `invited_by` int(11), `email` varchar(255), `sent_at` datetime, `account_id` int(11), `token` varchar(255), `roles` varchar(255)) ENGINE=InnoDB  (115.6ms) CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `confirmation_token` varchar(255), `confirmed_at` datetime, `confirmation_sent_at` datetime, `unconfirmed_email` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `birthdate` date, `name` varchar(255), `locale` varchar(255)) ENGINE=InnoDB  (123.5ms) CREATE UNIQUE INDEX `index_users_on_confirmation_token` ON `users` (`confirmation_token`)  (133.4ms) CREATE INDEX `index_users_on_email` ON `users` (`email`)  (148.4ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)  (134.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (128.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (0.1ms) SELECT version FROM `schema_migrations`  (0.5ms) INSERT INTO `schema_migrations` (version) VALUES ('20120719162426') Connecting to database specified by database.yml Connecting to database specified by database.yml Started GET "/" for 127.0.0.1 at 2012-07-25 23:17:00 -0300 Processing by DashboardController#index as HTML Rendered dashboard/splash.html.haml within layouts/application (2.6ms) WARNING on line 74 of /Users/patricknegri/Desenvolvimento/iugusdk/spec/dummy/app/assets/stylesheets/default.sass: This selector doesn't have any properties and will not be rendered. Compiled default.css (102ms) (pid 1972) Compiled application.css (160ms) (pid 1972) Compiled jquery.js (1ms) (pid 1972) Compiled jquery_ujs.js (0ms) (pid 1972) Compiled application.js (98ms) (pid 1972) Completed 200 OK in 486ms (Views: 468.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-25 23:17:01 -0300 Served asset /application.css - 200 OK (3ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-25 23:17:01 -0300 Served asset /jquery_ujs.js - 200 OK (2ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-25 23:17:01 -0300 Served asset /application.js - 200 OK (60ms) Connecting to database specified by database.yml Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-25 23:17:14 -0300 Served asset /default.css - 200 OK (3ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-25 23:17:14 -0300 Served asset /jquery.js - 200 OK (3ms) Started GET "/login" for 127.0.0.1 at 2012-07-25 23:17:19 -0300 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.2/app/views/devise/shared/_links.erb (2.3ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (6382.9ms) Completed 200 OK in 6457ms (Views: 6391.6ms | ActiveRecord: 49.7ms) Connecting to database specified by database.yml  (9.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateAccount (20120528164634) Migrating to AddDeviseToUsers (20120529134109) Migrating to AddBirthdateAndNameToUser (20120529162901) Migrating to AddNameAndSubscriptionIdAndUserIdToAccount (20120529174755) Migrating to CreateAccountUsers (20120529180814) Migrating to RemoveUserIdFromAccounts (20120530114709) Migrating to CreateAccountRoles (20120531171438) Migrating to AddLocaleToUser (20120604131034) Migrating to CreateSocialAccount (20120605142527) Migrating to SetLocale (20120612141130) Migrating to RemoveUniqueFromUserEmail (20120613173114) Migrating to CreateDelayedJobs (20120615180728) Migrating to CreateUserInvitations (20120629154429) Migrating to AddTokenToUserInvitations (20120629195345) Migrating to AddRolesToUserInvitations (20120705202827) Migrating to CreateAccountDomain (20120716145846) Migrating to AddSubdomainToAccount (20120719162426) Migrating to AddApiTokenToAccount (20120725170859)  (180.8ms) ALTER TABLE `accounts` ADD `api_token` varchar(255)  (0.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120725170859')  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml Connecting to database specified by database.yml  (18.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateAccount (20120528164634) Migrating to AddDeviseToUsers (20120529134109) Migrating to AddBirthdateAndNameToUser (20120529162901) Migrating to AddNameAndSubscriptionIdAndUserIdToAccount (20120529174755) Migrating to CreateAccountUsers (20120529180814) Migrating to RemoveUserIdFromAccounts (20120530114709) Migrating to CreateAccountRoles (20120531171438) Migrating to AddLocaleToUser (20120604131034) Migrating to CreateSocialAccount (20120605142527) Migrating to SetLocale (20120612141130) Migrating to RemoveUniqueFromUserEmail (20120613173114) Migrating to CreateDelayedJobs (20120615180728) Migrating to CreateUserInvitations (20120629154429) Migrating to AddTokenToUserInvitations (20120629195345) Migrating to AddRolesToUserInvitations (20120705202827) Migrating to CreateAccountDomain (20120716145846) Migrating to AddSubdomainToAccount (20120719162426) Migrating to AddApiTokenToAccount (20120725170859)  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml Started GET "/" for 127.0.0.1 at 2012-07-27 18:50:40 -0300 Processing by DashboardController#index as HTML Rendered dashboard/splash.html.haml within layouts/application (2.8ms) Completed 200 OK in 212ms (Views: 203.3ms | ActiveRecord: 0.0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:50:41 -0300 Served asset /application.js - 200 OK (3ms) Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:50:41 -0300 Served asset /default.css - 200 OK (2ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:50:41 -0300 Served asset /jquery_ujs.js - 200 OK (1ms) Connecting to database specified by database.yml Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:50:52 -0300 Served asset /jquery.js - 200 OK (3ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:50:52 -0300 Served asset /application.css - 200 OK (48ms) Started GET "/login" for 127.0.0.1 at 2012-07-27 18:50:58 -0300 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.2/app/views/devise/shared/_links.erb (2.3ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (6713.5ms) Completed 200 OK in 6756ms (Views: 6735.8ms | ActiveRecord: 3.5ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300 Served asset /jquery_ujs.js - 304 Not Modified (2ms) Served asset /application.css - 304 Not Modified (5ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300 Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /default.css - 304 Not Modified (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:05 -0300 Served asset /application.js - 304 Not Modified (3ms) Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-07-27 18:51:09 -0300 Started GET "/account/auth/facebook/callback?state=cb0c5938ab40d05b7bac355aae7308e5dee5256edc5b25f8&code=AQBiu8hdi6FRI2VJOqVKZ-oSAmt7E4M1afbjHIo8HvUWcJlNKXkR2wfmT65vuwSkcdVrP8v8yWo5m5WFpG5oSGcI-FK630yhH0VQ7BQHCyFl1RdtNKCF_jMeO0bfvcwrzAgRdq6v7pSSzTTMC-SPk0ma8HjeuBsWEKEn93HQIP3A15uiA7GByiBSyicT5w1ZiNE" for 127.0.0.1 at 2012-07-27 18:51:10 -0300 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Parameters: {"state"=>"cb0c5938ab40d05b7bac355aae7308e5dee5256edc5b25f8", "code"=>"AQBiu8hdi6FRI2VJOqVKZ-oSAmt7E4M1afbjHIo8HvUWcJlNKXkR2wfmT65vuwSkcdVrP8v8yWo5m5WFpG5oSGcI-FK630yhH0VQ7BQHCyFl1RdtNKCF_jMeO0bfvcwrzAgRdq6v7pSSzTTMC-SPk0ma8HjeuBsWEKEn93HQIP3A15uiA7GByiBSyicT5w1ZiNE"} DEPRECATION WARNING: Using `method_missing` to handle non existing actions is deprecated and will be removed in Rails 4.0, please use `action_missing` instead. (called from handle at /Users/patricknegri/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:147) SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1139530567') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `users` WHERE `users`.`email` = 'patrick@iugu.com.br'  (0.1ms) BEGIN SQL (0.5ms) INSERT INTO `users` (`birthdate`, `confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `locale`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `unconfirmed_email`, `updated_at`) VALUES (NULL, NULL, NULL, '2012-07-27 21:51:14', '2012-07-27 21:51:14', 'patrick@iugu.com.br', '', NULL, NULL, NULL, NULL, NULL, NULL, '2012-07-27 21:51:14') SQL (0.5ms) INSERT INTO `accounts` (`api_token`, `created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('dc703a38dd769da0f98a9ffb7cc72f93', '2012-07-27 21:51:14', NULL, NULL, NULL, '2012-07-27 21:51:14') Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (1, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.3ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 1) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (1, 'admin')  (0.8ms) COMMIT  (0.1ms) BEGIN SQL (0.4ms) INSERT INTO `social_accounts` (`provider`, `secret`, `social_id`, `token`, `user_id`) VALUES ('facebook', NULL, 1139530567, 'AAACfei317GUBAAZAsZA3lu1s1ZBmy8q8jijCEN2RP3PFGDFZAC0En0xwZCQ4O0S9cLXg9G2b4hYJZCsaOoRaVFjd1zZAR4l58c36qm46ZA6xfAZDZD', 1)  (0.6ms) COMMIT  (0.1ms) BEGIN  (0.0ms) COMMIT SELECT ACCOUNT Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '9') LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 634ms (ActiveRecord: 17.9ms) Started GET "/" for 127.0.0.1 at 2012-07-27 18:51:14 -0300 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.1ms) Completed 200 OK in 45ms (Views: 41.8ms | ActiveRecord: 0.4ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300 Served asset /jquery.js - 304 Not Modified (3ms) Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300 Served asset /application.js - 304 Not Modified (0ms) Served asset /default.css - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:14 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/settings" for 127.0.0.1 at 2012-07-27 18:51:21 -0300 Processing by Iugu::SettingsController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:21 -0300 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63) SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (33.6ms) Compiled settings.css (205ms) (pid 1481) Compiled jquery-ui.js (2ms) (pid 1481) Compiled settings_code.js (71ms) (pid 1481) Compiled settings.js (166ms) (pid 1481) Completed 200 OK in 610ms (Views: 602.9ms | ActiveRecord: 5.0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300 Served asset /settings_code.js - 200 OK (2ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300 Served asset /settings.js - 200 OK (10ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300 Served asset /jquery-ui.js - 200 OK (3ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:22 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /settings.css - 200 OK (2ms) Started GET "/assets/application_logo.png" for 127.0.0.1 at 2012-07-27 18:51:22 -0300 Served asset /application_logo.png - 200 OK (24ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:24 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.5ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (145.5ms) Completed 200 OK in 165ms (Views: 160.6ms | ActiveRecord: 2.6ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300 Served asset /settings.css - 304 Not Modified (3ms) Served asset /settings.js - 304 Not Modified (7ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:25 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (3ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:26 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.6ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (75.6ms) Completed 200 OK in 157ms (Views: 82.5ms | ActiveRecord: 5.9ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300 Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300 Served asset /jquery-ui.js - 304 Not Modified (3ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:27 -0300 Served asset /settings.js - 304 Not Modified (0ms) Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-27 18:51:32 -0300 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (10.6ms) Completed 200 OK in 41ms (Views: 25.5ms | ActiveRecord: 2.6ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:32 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started PUT "/settings/account/1/subdomain?id=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc=", "account"=>{"subdomain"=>""}, "commit"=>"Save", "id"=>"1", "account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1  (0.2ms) BEGIN Account Exists (0.4ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`api_token` = BINARY 'dc703a38dd769da0f98a9ffb7cc72f93' AND `accounts`.`id` != 1) LIMIT 1  (0.4ms) UPDATE `accounts` SET `subdomain` = '', `updated_at` = '2012-07-27 21:51:34' WHERE `accounts`.`id` = 1  (0.5ms) COMMIT Redirected to http://iugusdk.dev/settings/account/1/domains Completed 302 Found in 15ms (ActiveRecord: 4.0ms) Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.6ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (62.9ms) Completed 200 OK in 81ms (Views: 71.2ms | ActiveRecord: 2.5ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:34 -0300 Served asset /settings.js - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started POST "/settings/account/1/domain" for 127.0.0.1 at 2012-07-27 18:51:35 -0300 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc=", "account_domain"=>{"url"=>""}, "commit"=>"Add", "account_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (5.8ms) Completed 200 OK in 30ms (Views: 14.6ms | ActiveRecord: 3.3ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300 Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:35 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:37 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.9ms) Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 2.0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300 Served asset /settings.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:37 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started POST "/settings/account" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Processing by Iugu::AccountController#create as HTML Parameters: {"authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc="} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.1ms) BEGIN SQL (0.3ms) INSERT INTO `accounts` (`api_token`, `created_at`, `name`, `subdomain`, `subscription_id`, `updated_at`) VALUES ('5409bab1a7e6824501eed7f17b741343', '2012-07-27 21:51:39', NULL, NULL, NULL, '2012-07-27 21:51:39')  (0.6ms) COMMIT  (0.1ms) BEGIN User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 SQL (0.2ms) INSERT INTO `account_users` (`account_id`, `user_id`) VALUES (2, 1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'owner' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.2ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'owner') AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE (`account_roles`.`name` = BINARY 'admin' AND `account_roles`.`account_user_id` = 2) LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`id` = 2 LIMIT 1 SQL (0.1ms) INSERT INTO `account_roles` (`account_user_id`, `name`) VALUES (2, 'admin')  (0.5ms) COMMIT Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 18ms (ActiveRecord: 4.2ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (7.7ms) Completed 200 OK in 18ms (Views: 14.5ms | ActiveRecord: 2.1ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:39 -0300 Served asset /settings.js - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/select_account/2" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"2"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '2') LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 2 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (2) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (2) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (9.0ms) Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 1.9ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:40 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started GET "/select_account/1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '1') LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 67ms (ActiveRecord: 0.9ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.4ms) Completed 200 OK in 19ms (Views: 15.3ms | ActiveRecord: 2.1ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:41 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/select_account/2" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"2"} User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '2') LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 2 LIMIT 1 AccountRole Load (0.4ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (2) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (2) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.0ms) Completed 200 OK in 19ms (Views: 15.1ms | ActiveRecord: 2.2ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:42 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/select_account/1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Processing by Iugu::AccountController#select as HTML Parameters: {"id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '1') LIMIT 1 Redirected to http://iugusdk.dev/settings/accounts Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.0ms) Completed 200 OK in 19ms (Views: 15.0ms | ActiveRecord: 2.1ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Served asset /settings.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:43 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.5ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (20.6ms) Completed 200 OK in 36ms (Views: 29.3ms | ActiveRecord: 2.9ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:44 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (18.2ms) Completed 200 OK in 32ms (Views: 25.1ms | ActiveRecord: 2.9ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:47 -0300 Served asset /settings.js - 304 Not Modified (0ms) Served asset /jquery-ui.js - 304 Not Modified (0ms) Started POST "/settings/account/1/generate_new_token" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Processing by Iugu::AccountController#generate_new_token as HTML Parameters: {"authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc=", "account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.5ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1  (0.2ms) BEGIN  (0.4ms) UPDATE `accounts` SET `api_token` = '95a08be4b003cd259c4dd21a49aad384', `updated_at` = '2012-07-27 21:51:50' WHERE `accounts`.`id` = 1  (0.9ms) COMMIT Redirected to http://iugusdk.dev/settings/account/1 Completed 302 Found in 74ms (ActiveRecord: 3.5ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (20.2ms) Completed 200 OK in 34ms (Views: 27.2ms | ActiveRecord: 2.8ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /jquery-ui.js - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:50 -0300 Served asset /settings.js - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:51 -0300 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63) SocialAccount Load (0.5ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (29.1ms) Completed 200 OK in 45ms (Views: 40.3ms | ActiveRecord: 2.1ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300 Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300 Served asset /settings.js - 304 Not Modified (0ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:51 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:53 -0300 Processing by Iugu::ProfileController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63) SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (80.5ms) Completed 200 OK in 91ms (Views: 87.4ms | ActiveRecord: 1.9ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300 Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:53 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.7ms) Completed 200 OK in 21ms (Views: 17.2ms | ActiveRecord: 2.0ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Served asset /settings.css - 304 Not Modified (0ms) Served asset /settings.js - 304 Not Modified (0ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Served asset /settings_code.js - 304 Not Modified (0ms) Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-07-27 18:51:54 -0300 Processing by Iugu::ProfileController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.5ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml__3975791667755215596_2168157460 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63) SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (75.9ms) Completed 200 OK in 87ms (Views: 83.4ms | ActiveRecord: 1.9ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Served asset /jquery-ui.js - 304 Not Modified (0ms) Served asset /jquery_ujs.js - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Served asset /settings.css - 304 Not Modified (0ms) Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Served asset /settings.js - 304 Not Modified (0ms) Served asset /settings_code.js - 304 Not Modified (0ms) Started GET "/" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (0.1ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms) Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Served asset /application.css - 304 Not Modified (0ms) Served asset /default.css - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /jquery.js - 304 Not Modified (0ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:55 -0300 Served asset /application.js - 304 Not Modified (0ms) Started DELETE "/logout" for 127.0.0.1 at 2012-07-27 18:51:56 -0300 Processing by Iugu::SessionsController#destroy as HTML Parameters: {"authenticity_token"=>"bpsPTOi9t9F9+SZQRfRKCJTe+msoeOF+GzxwcBkQ5Bc="} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.3ms) BEGIN  (0.1ms) COMMIT Redirected to http://iugusdk.dev/ Completed 302 Found in 26ms (ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2012-07-27 18:51:56 -0300 Processing by DashboardController#index as HTML Rendered dashboard/splash.html.haml within layouts/application (0.7ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300 Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300 Served asset /application.css - 304 Not Modified (0ms) Served asset /default.css - 304 Not Modified (2ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300 Served asset /jquery_ujs.js - 304 Not Modified (0ms) Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-27 18:51:56 -0300 Served asset /jquery.js - 304 Not Modified (0ms) Connecting to database specified by database.yml Connecting to database specified by database.yml Started GET "/" for 127.0.0.1 at 2012-07-31 12:02:13 -0300 Processing by DashboardController#index as HTML Rendered dashboard/splash.html.haml within layouts/application (3.0ms) Completed 200 OK in 177ms (Views: 163.7ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-31 12:02:13 -0300 Served asset /application.css - 200 OK (4ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-31 12:02:13 -0300 Served asset /jquery_ujs.js - 200 OK (2ms) Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-31 12:02:13 -0300 Served asset /default.css - 200 OK (2ms) Connecting to database specified by database.yml Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-31 12:02:26 -0300 Served asset /application.js - 200 OK (50ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-31 12:02:26 -0300 Served asset /jquery.js - 200 OK (2ms) Started GET "/login" for 127.0.0.1 at 2012-07-31 12:03:24 -0300 Processing by Iugu::SessionsController#new as HTML Rendered /Users/patricknegri/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.1.2/app/views/devise/shared/_links.erb (4.9ms) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/sessions/new.html.haml within layouts/application (7796.4ms) Completed 200 OK in 8042ms (Views: 7842.1ms | ActiveRecord: 182.7ms) Connecting to database specified by database.yml Started GET "/account/auth/facebook" for 127.0.0.1 at 2012-07-31 13:13:42 -0300 Started GET "/account/auth/facebook/callback?state=a887c6cc6f3e85ef65b08b1ae37621bfcc173eb5a12a0771&code=AQAKJ6UpCRS_p_pOcSh6oiTLVTlxnjRISM-DgaTlVnqexmoFo1iQGQqPUYl1SBz3-Yf7bIhX2mPZbNmWQyKi_cNvlZ2I24H8bR1EpFQ8B1ZV1OYBztjW8fARatYoaBpd3xhS3l6ZVbsCOG26nvXGls6-n5KACq5nThi32mRE_yz5EjNS2E-ISf0l5Qv7pqJ_y1Y" for 127.0.0.1 at 2012-07-31 13:13:44 -0300 Processing by Iugu::OmniauthCallbacksController#facebook as HTML Parameters: {"state"=>"a887c6cc6f3e85ef65b08b1ae37621bfcc173eb5a12a0771", "code"=>"AQAKJ6UpCRS_p_pOcSh6oiTLVTlxnjRISM-DgaTlVnqexmoFo1iQGQqPUYl1SBz3-Yf7bIhX2mPZbNmWQyKi_cNvlZ2I24H8bR1EpFQ8B1ZV1OYBztjW8fARatYoaBpd3xhS3l6ZVbsCOG26nvXGls6-n5KACq5nThi32mRE_yz5EjNS2E-ISf0l5Qv7pqJ_y1Y"} DEPRECATION WARNING: Using `method_missing` to handle non existing actions is deprecated and will be removed in Rails 4.0, please use `action_missing` instead. (called from handle at /Users/patricknegri/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:147) SocialAccount Load (283.1ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE (provider = 'facebook' AND social_id = '1139530567') LIMIT 1 User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.8ms) BEGIN  (0.1ms) COMMIT SELECT ACCOUNT Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND (accounts.id = '1') LIMIT 1 Redirected to http://iugusdk.dev/ Completed 302 Found in 1321ms (ActiveRecord: 606.4ms) Started GET "/" for 127.0.0.1 at 2012-07-31 13:13:49 -0300 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.3ms) Completed 200 OK in 244ms (Views: 230.1ms | ActiveRecord: 0.4ms) Started GET "/settings" for 127.0.0.1 at 2012-07-31 13:13:52 -0300 Processing by Iugu::SettingsController#index as HTML User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-07-31 13:13:53 -0300 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml___3293581842198614446_2153038260 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63) SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.4ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (6182.3ms) Completed 200 OK in 6273ms (Views: 6246.1ms | ActiveRecord: 24.9ms) Started GET "/assets/settings.css?body=1" for 127.0.0.1 at 2012-07-31 13:13:59 -0300 Served asset /settings.css - 200 OK (2ms) Started GET "/assets/settings_code.js?body=1" for 127.0.0.1 at 2012-07-31 13:13:59 -0300 Served asset /settings_code.js - 200 OK (3ms) Connecting to database specified by database.yml Started GET "/assets/settings.js?body=1" for 127.0.0.1 at 2012-07-31 13:14:12 -0300 Served asset /settings.js - 200 OK (53ms) Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2012-07-31 13:14:12 -0300 Served asset /jquery-ui.js - 200 OK (3ms) Started GET "/assets/application_logo.png" for 127.0.0.1 at 2012-07-31 13:14:12 -0300 Served asset /application_logo.png - 200 OK (19ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-31 13:14:15 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (46.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (6018.5ms) Completed 200 OK in 6396ms (Views: 6181.4ms | ActiveRecord: 99.0ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:23 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (1.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (690.3ms) Completed 200 OK in 889ms (Views: 708.2ms | ActiveRecord: 12.9ms) Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-31 13:14:28 -0300 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (4.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.5ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (11.5ms) Completed 200 OK in 43ms (Views: 21.8ms | ActiveRecord: 6.2ms) Started PUT "/settings/account/1/subdomain?id=1" for 127.0.0.1 at 2012-07-31 13:14:30 -0300 Processing by Iugu::AccountDomainsController#update_subdomain as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM=", "account"=>{"subdomain"=>""}, "commit"=>"Save", "id"=>"1", "account_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Account Exists (33.2ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`api_token` = BINARY '95a08be4b003cd259c4dd21a49aad384' AND `accounts`.`id` != 1) LIMIT 1  (0.2ms) COMMIT Redirected to http://iugusdk.dev/settings/account/1/domains Completed 302 Found in 66ms (ActiveRecord: 35.3ms) Started GET "/settings/account/1/domains" for 127.0.0.1 at 2012-07-31 13:14:30 -0300 Processing by Iugu::AccountDomainsController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.2ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.3ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (4.8ms) Completed 200 OK in 88ms (Views: 78.6ms | ActiveRecord: 2.1ms) Started POST "/settings/account/1/domain" for 127.0.0.1 at 2012-07-31 13:14:31 -0300 Processing by Iugu::AccountDomainsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM=", "account_domain"=>{"url"=>""}, "commit"=>"Add", "account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 AccountUser Load (0.1ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'admin' LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1  (0.2ms) BEGIN  (0.1ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) COMMIT AccountDomain Load (0.4ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`account_id` = 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_domains/index.html.haml within layouts/settings (4.9ms) Completed 200 OK in 28ms (Views: 13.4ms | ActiveRecord: 2.6ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-31 13:14:33 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (8.6ms) Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 2.1ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:34 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.3ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.3ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (21.8ms) Completed 200 OK in 36ms (Views: 30.9ms | ActiveRecord: 2.4ms) Started PUT "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:46 -0300 Processing by Iugu::AccountController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM=", "account"=>{"name"=>""}, "commit"=>"Save", "id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1  (0.1ms) BEGIN Account Exists (0.3ms) SELECT 1 AS one FROM `accounts` WHERE (`accounts`.`api_token` = BINARY '95a08be4b003cd259c4dd21a49aad384' AND `accounts`.`id` != 1) LIMIT 1  (50.5ms) UPDATE `accounts` SET `name` = '', `updated_at` = '2012-07-31 16:14:46' WHERE `accounts`.`id` = 1  (20.3ms) COMMIT Redirected to http://iugusdk.dev/settings/account/1 Completed 302 Found in 116ms (ActiveRecord: 72.4ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:46 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.4ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (21.3ms) Completed 200 OK in 39ms (Views: 33.1ms | ActiveRecord: 2.6ms) Started GET "/settings/account/1/users" for 127.0.0.1 at 2012-07-31 13:14:52 -0300 Processing by Iugu::AccountUsersController#index as HTML Parameters: {"account_id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.1ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AccountRole Load (0.1ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.3ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.2ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_user_1_destroy' LIMIT 1 CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/account_users/index.html.haml within layouts/settings (19.7ms) Completed 200 OK in 112ms (Views: 106.5ms | ActiveRecord: 2.1ms) Started GET "/settings/accounts" for 127.0.0.1 at 2012-07-31 13:14:55 -0300 Processing by Iugu::AccountController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AccountUser Load (0.3ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`user_id` = 1 AND `account_users`.`account_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.1ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/accounts.html.haml within layouts/settings (7.9ms) Completed 200 OK in 19ms (Views: 15.8ms | ActiveRecord: 1.6ms) Started GET "/settings/account/1" for 127.0.0.1 at 2012-07-31 13:14:58 -0300 Processing by Iugu::AccountController#view as HTML Parameters: {"id"=>"1"} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` INNER JOIN `account_users` ON `accounts`.`id` = `account_users`.`account_id` WHERE `account_users`.`user_id` = 1 AND `accounts`.`id` = 1 LIMIT 1 AccountDomain Load (0.2ms) SELECT `account_domains`.* FROM `account_domains` WHERE `account_domains`.`account_id` = 1 AND `account_domains`.`primary` = 1 LIMIT 1 AccountUser Load (0.4ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 AccountRole Load (0.2ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) AccountRole Exists (0.2ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 CACHE (0.0ms) SELECT `account_users`.* FROM `account_users` WHERE `account_users`.`account_id` = 1 AND `account_users`.`user_id` = 1 LIMIT 1 CACHE (0.0ms) SELECT `account_roles`.* FROM `account_roles` WHERE `account_roles`.`account_user_id` IN (1) CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` IN (1) CACHE (0.0ms) SELECT 1 AS one FROM `account_roles` WHERE `account_roles`.`account_user_id` = 1 AND `account_roles`.`name` = 'owner' LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'account_1_destroy' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/account.html.haml within layouts/settings (20.9ms) Completed 200 OK in 34ms (Views: 28.6ms | ActiveRecord: 2.3ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-07-31 13:15:02 -0300 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml___2152321752299560610_2169214360 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63) SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (124.8ms) Completed 200 OK in 140ms (Views: 120.7ms | ActiveRecord: 17.2ms) Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:07 -0300 Processing by DashboardController#index as HTML User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (1.1ms) Completed 200 OK in 61ms (Views: 59.3ms | ActiveRecord: 0.3ms) Started GET "/settings" for 127.0.0.1 at 2012-07-31 13:15:08 -0300 Processing by Iugu::SettingsController#index as HTML User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Redirected to http://iugusdk.dev/settings/profile Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET "/settings/profile" for 127.0.0.1 at 2012-07-31 13:15:08 -0300 Processing by Iugu::ProfileController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Delayed::Backend::ActiveRecord::Job Load (0.4ms) SELECT `delayed_jobs`.* FROM `delayed_jobs` WHERE `delayed_jobs`.`queue` = 'user_1_destroy' LIMIT 1 DEPRECATION WARNING: :confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => 'Text' }' instead. (called from block in ___sers_patricknegri__esenvolvimento_iugusdk_app_views_iugu_settings_profile_html_haml___2152321752299560610_2169214360 at /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml:63) SocialAccount Load (0.3ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'facebook' LIMIT 1 SocialAccount Load (0.2ms) SELECT `social_accounts`.* FROM `social_accounts` WHERE `social_accounts`.`user_id` = 1 AND `social_accounts`.`provider` = 'twitter' LIMIT 1 Rendered /Users/patricknegri/Desenvolvimento/iugusdk/app/views/iugu/settings/profile.html.haml within layouts/settings (91.7ms) Completed 200 OK in 102ms (Views: 98.8ms | ActiveRecord: 1.6ms) Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:09 -0300 Processing by DashboardController#index as HTML User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 Rendered dashboard/index.html.haml within layouts/application (0.1ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.4ms) Started DELETE "/logout" for 127.0.0.1 at 2012-07-31 13:15:10 -0300 Processing by Iugu::SessionsController#destroy as HTML Parameters: {"authenticity_token"=>"rngr1HS6l9kqvtkPXxo6C24XedPbuTkdGz4ilFYKXIM="} User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1  (0.2ms) BEGIN  (0.1ms) COMMIT Redirected to http://iugusdk.dev/ Completed 302 Found in 19ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:10 -0300 Processing by DashboardController#index as HTML Rendered dashboard/splash.html.haml within layouts/application (2.4ms) Completed 200 OK in 80ms (Views: 79.1ms | ActiveRecord: 0.0ms) Started GET "/" for 127.0.0.1 at 2012-07-31 13:15:13 -0300 Processing by DashboardController#index as HTML Rendered dashboard/splash.html.haml within layouts/application (0.8ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300 Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300 Served asset /default.css - 304 Not Modified (1ms) Served asset /application.css - 304 Not Modified (6ms) Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300 Served asset /jquery_ujs.js - 304 Not Modified (2ms) Served asset /application.js - 304 Not Modified (5ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-31 13:15:13 -0300 Served asset /jquery.js - 304 Not Modified (2ms) Connecting to database specified by database.yml Started GET "/" for 127.0.0.1 at 2012-07-31 20:26:46 -0300 Processing by DashboardController#index as HTML Rendered dashboard/splash.html.haml within layouts/application (4.0ms) Completed 200 OK in 251ms (Views: 230.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-07-31 20:26:46 -0300 Served asset /application.css - 304 Not Modified (5ms) Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-07-31 20:26:46 -0300 Served asset /jquery_ujs.js - 304 Not Modified (7ms) Started GET "/assets/default.css?body=1" for 127.0.0.1 at 2012-07-31 20:26:46 -0300 Served asset /default.css - 304 Not Modified (2ms) Connecting to database specified by database.yml Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-07-31 20:27:00 -0300 Served asset /application.js - 304 Not Modified (6ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-07-31 20:27:00 -0300 Served asset /jquery.js - 304 Not Modified (2ms)