diff --git a/.gitignore b/.gitignore index b2b4d85..1ed1c09 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,10 @@ .bundle/ log/*.log pkg/ -test/dummy/db/*.sqlite3 -test/dummy/log/*.log -test/dummy/tmp/ -test/dummy/.sass-cache +spec/dummy/db/*.sqlite3 +spec/dummy/log/*.log +spec/dummy/tmp/ +spec/dummy/.sass-cache *.gem .yardoc/ +tmp/ diff --git a/.rspec b/.rspec new file mode 100644 index 0000000..528a917 --- /dev/null +++ b/.rspec @@ -0,0 +1,2 @@ +--color --format documentation + diff --git a/.rvmrc b/.rvmrc deleted file mode 100644 index 5457041..0000000 --- a/.rvmrc +++ /dev/null @@ -1 +0,0 @@ -rvm --create use default@${PWD##/*/} diff --git a/Gemfile b/Gemfile index c42dc8b..4aa84f6 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source "http://rubygems.org" +source "https://rubygems.org" # Declare your gem's dependencies in active_admin-acts_as_list.gemspec. # Bundler will treat runtime dependencies like base dependencies, and @@ -15,3 +15,6 @@ gem "jquery-rails" # To use debugger # gem 'debugger' + +# Patched guard rails +gem 'guard-rails', :git => 'git://github.com/robotex82/guard-rails.git', :branch => 'better-engine-support' diff --git a/Gemfile.lock b/Gemfile.lock index e2b1908..2fbffeb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,106 +1,261 @@ +GIT + remote: git://github.com/robotex82/guard-rails.git + revision: 2b0d43bd01c32363b4919bca372973224b3cbab1 + branch: better-engine-support + specs: + guard-rails (0.1.0) + guard (>= 0.2.2) + PATH remote: . specs: - active_admin-acts_as_list (0.0.5) + active_admin-awesome_nested_set (0.0.4) rails (~> 3.2.5) GEM - remote: http://rubygems.org/ + remote: https://rubygems.org/ specs: - actionmailer (3.2.6) - actionpack (= 3.2.6) + actionmailer (3.2.12) + actionpack (= 3.2.12) mail (~> 2.4.4) - actionpack (3.2.6) - activemodel (= 3.2.6) - activesupport (= 3.2.6) + actionpack (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) builder (~> 3.0.0) erubis (~> 2.7.0) - journey (~> 1.0.1) - rack (~> 1.4.0) + journey (~> 1.0.4) + rack (~> 1.4.5) rack-cache (~> 1.2) rack-test (~> 0.6.1) - sprockets (~> 2.1.3) - activemodel (3.2.6) - activesupport (= 3.2.6) + sprockets (~> 2.2.1) + activeadmin (0.5.1) + arbre (>= 1.0.1) + bourbon (>= 1.0.0) + devise (>= 1.1.2) + fastercsv + formtastic (>= 2.0.0) + inherited_resources (>= 1.3.1) + jquery-rails (>= 1.0.0) + kaminari (>= 0.13.0) + meta_search (>= 0.9.2) + rails (>= 3.0.0) + sass (>= 3.1.0) + activemodel (3.2.12) + activesupport (= 3.2.12) builder (~> 3.0.0) - activerecord (3.2.6) - activemodel (= 3.2.6) - activesupport (= 3.2.6) + activerecord (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) arel (~> 3.0.2) tzinfo (~> 0.3.29) - activeresource (3.2.6) - activemodel (= 3.2.6) - activesupport (= 3.2.6) - activesupport (3.2.6) + activeresource (3.2.12) + activemodel (= 3.2.12) + activesupport (= 3.2.12) + activesupport (3.2.12) i18n (~> 0.6) multi_json (~> 1.0) + arbre (1.0.1) + activesupport (>= 3.0.0) arel (3.0.2) - builder (3.0.0) - daemons (1.1.8) + awesome_nested_set (2.1.6) + activerecord (>= 3.0.0) + bcrypt-ruby (3.0.1) + bourbon (3.1.1) + sass (>= 3.2.0) + thor + bourne (1.1.2) + mocha (= 0.10.5) + builder (3.0.4) + capybara (2.0.2) + mime-types (>= 1.16) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + selenium-webdriver (~> 2.0) + xpath (~> 1.0.0) + childprocess (0.3.8) + ffi (~> 1.0, >= 1.0.11) + coderay (1.0.9) + coffee-rails (3.2.2) + coffee-script (>= 2.2.0) + railties (~> 3.2.0) + coffee-script (2.2.0) + coffee-script-source + execjs + coffee-script-source (1.3.3) + daemons (1.1.9) + devise (2.2.3) + bcrypt-ruby (~> 3.0) + orm_adapter (~> 0.1) + railties (~> 3.1) + warden (~> 1.2.1) + diff-lcs (1.2.1) erubis (2.7.0) - eventmachine (0.12.10) + eventmachine (1.0.1) + execjs (1.4.0) + multi_json (~> 1.0) + factory_girl (2.6.4) + activesupport (>= 2.3.9) + factory_girl_rails (1.7.0) + factory_girl (~> 2.6.0) + railties (>= 3.0.0) + fastercsv (1.5.5) + ffi (1.4.0) + formtastic (2.2.1) + actionpack (>= 3.0) + guard (1.6.2) + listen (>= 0.6.0) + lumberjack (>= 1.0.2) + pry (>= 0.9.10) + terminal-table (>= 1.4.3) + thor (>= 0.14.6) + guard-bundler (1.0.0) + bundler (~> 1.0) + guard (~> 1.1) + guard-rspec (2.4.1) + guard (>= 1.1) + rspec (~> 2.11) + has_scope (0.5.1) hike (1.2.1) - i18n (0.6.0) + i18n (0.6.4) + inherited_resources (1.3.1) + has_scope (~> 0.5.0) + responders (~> 0.6) journey (1.0.4) - jquery-rails (2.0.2) - railties (>= 3.2.0, < 5.0) - thor (~> 0.14) - json (1.7.3) + jquery-rails (2.2.1) + railties (>= 3.0, < 5.0) + thor (>= 0.14, < 2.0) + json (1.7.7) + kaminari (0.14.1) + actionpack (>= 3.0.0) + activesupport (>= 3.0.0) + listen (0.7.3) + lumberjack (1.0.2) mail (2.4.4) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) - mime-types (1.19) - multi_json (1.3.6) + meta_search (1.1.3) + actionpack (~> 3.1) + activerecord (~> 3.1) + activesupport (~> 3.1) + polyamorous (~> 0.5.0) + metaclass (0.0.1) + method_source (0.8.1) + mime-types (1.21) + mocha (0.10.5) + metaclass (~> 0.0.1) + multi_json (1.6.1) + nokogiri (1.5.6) + orm_adapter (0.4.0) + polyamorous (0.5.0) + activerecord (~> 3.0) polyglot (0.3.3) - rack (1.4.1) + pry (0.9.12) + coderay (~> 1.0.5) + method_source (~> 0.8) + slop (~> 3.4) + rack (1.4.5) rack-cache (1.2) rack (>= 0.4) - rack-ssl (1.3.2) + rack-ssl (1.3.3) rack - rack-test (0.6.1) + rack-test (0.6.2) rack (>= 1.0) - rails (3.2.6) - actionmailer (= 3.2.6) - actionpack (= 3.2.6) - activerecord (= 3.2.6) - activeresource (= 3.2.6) - activesupport (= 3.2.6) + rails (3.2.12) + actionmailer (= 3.2.12) + actionpack (= 3.2.12) + activerecord (= 3.2.12) + activeresource (= 3.2.12) + activesupport (= 3.2.12) bundler (~> 1.0) - railties (= 3.2.6) - railties (3.2.6) - actionpack (= 3.2.6) - activesupport (= 3.2.6) + railties (= 3.2.12) + railties (3.2.12) + actionpack (= 3.2.12) + activesupport (= 3.2.12) rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) thor (>= 0.14.6, < 2.0) - rake (0.9.2.2) - rdoc (3.12) + rake (10.0.3) + rb-inotify (0.9.0) + ffi (>= 0.5.0) + rdoc (3.12.2) json (~> 1.4) - sprockets (2.1.3) + responders (0.9.3) + railties (~> 3.1) + rspec (2.13.0) + rspec-core (~> 2.13.0) + rspec-expectations (~> 2.13.0) + rspec-mocks (~> 2.13.0) + rspec-core (2.13.0) + rspec-expectations (2.13.0) + diff-lcs (>= 1.1.3, < 2.0) + rspec-mocks (2.13.0) + rspec-rails (2.13.0) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 2.13.0) + rspec-expectations (~> 2.13.0) + rspec-mocks (~> 2.13.0) + rubyzip (0.9.9) + sass (3.2.6) + sass-rails (3.2.5) + railties (~> 3.2.0) + sass (>= 3.1.10) + tilt (~> 1.3) + selenium-webdriver (2.30.0) + childprocess (>= 0.2.5) + multi_json (~> 1.0) + rubyzip + websocket (~> 1.0.4) + shoulda-matchers (1.4.2) + activesupport (>= 3.0.0) + bourne (~> 1.1.2) + slop (3.4.3) + sprockets (2.2.2) hike (~> 1.2) + multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) - sqlite3 (1.3.6) - thin (1.3.1) + sqlite3 (1.3.7) + terminal-table (1.4.5) + thin (1.5.0) daemons (>= 1.0.9) eventmachine (>= 0.12.6) rack (>= 1.0.0) - thor (0.15.2) - tilt (1.3.3) - treetop (1.4.10) + thor (0.17.0) + tilt (1.3.4) + treetop (1.4.12) polyglot polyglot (>= 0.3.1) - tzinfo (0.3.33) - yard (0.8.2.1) + tzinfo (0.3.35) + warden (1.2.1) + rack (>= 1.0) + websocket (1.0.7) + xpath (1.0.0) + nokogiri (~> 1.3) + yard (0.8.5.2) PLATFORMS ruby DEPENDENCIES - active_admin-acts_as_list! + active_admin-awesome_nested_set! + activeadmin + awesome_nested_set + capybara + coffee-rails + factory_girl_rails (~> 1.0) + guard-bundler + guard-rails! + guard-rspec jquery-rails + rb-inotify (~> 0.9) + rspec-rails + sass-rails + shoulda-matchers sqlite3 thin yard diff --git a/Guardfile b/Guardfile new file mode 100644 index 0000000..69f8c2a --- /dev/null +++ b/Guardfile @@ -0,0 +1,46 @@ +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +guard 'rails', :rails_root => 'spec/dummy' do + watch('Gemfile.lock') + watch(%r{^(config|lib)/.*(^\.rake)}) +end + +guard 'rspec' do + watch(%r{^spec/.+_spec\.rb$}) + watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } + watch('spec/spec_helper.rb') { "spec" } + + # Rails example + watch(%r{^spec/dummy/app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } + watch(%r{^spec/dummy/app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } + watch(%r{^spec/dummy/app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] } + watch(%r{^spec/support/(.+)\.rb$}) { "spec" } + watch('spec/dummy/config/routes.rb') { "spec/routing" } + watch('spec/dummy/app/controllers/application_controller.rb') { "spec/controllers" } + + # Capybara request specs + watch(%r{^spec/dummy/app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } + + # Turnip features and steps + watch(%r{^spec/acceptance/(.+)\.feature$}) + watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' } + + # Engine + watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } + watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } + watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] } + watch('config/routes.rb') { "spec/routing" } + watch('app/controllers/application_controller.rb') { "spec/controllers" } + watch(%r{^app/models/(.+)\.rb$}) { |m| "spec/models/generic_spec.rb" } + + # Migrations + watch(%r{^spec/migrations/.+_spec\.rb$}) + watch(%r{^spec/dummy/db/migrate/[0-9]{14}_(.+)\.rb$}) { |m| "spec/migrations/#{m[1]}_spec.rb" } +end + +guard 'bundler' do + watch('Gemfile') + watch('*.gemspec') +end + diff --git a/History.md b/History.md new file mode 100644 index 0000000..a5a4533 --- /dev/null +++ b/History.md @@ -0,0 +1,5 @@ + +0.0.5 / 2013-04-15 +================== + + * Fixed: Helper not being found on show views. diff --git a/MIT-LICENSE b/MIT-LICENSE index 406f17b..7877b5b 100644 --- a/MIT-LICENSE +++ b/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright 2012 YOURNAME +Copyright 2013 Roberto Vasquez Angel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/README.rdoc b/README.rdoc index be454f7..2c2d8d9 100644 --- a/README.rdoc +++ b/README.rdoc @@ -31,7 +31,7 @@ Install your bundle: = Usage -Assuming you have a Players model: +Assuming you have a Category model: class Category < ActiveRecord::Base # awesome nested set diff --git a/Rakefile b/Rakefile index cec178e..2e1d1d5 100644 --- a/Rakefile +++ b/Rakefile @@ -20,19 +20,5 @@ RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_files.include('lib/**/*.rb') end - - - Bundler::GemHelper.install_tasks -require 'rake/testtask' - -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.verbose = false -end - - -task :default => :test diff --git a/active_admin-awesome_nested_set.gemspec b/active_admin-awesome_nested_set.gemspec index 7fa05bf..f629150 100644 --- a/active_admin-awesome_nested_set.gemspec +++ b/active_admin-awesome_nested_set.gemspec @@ -14,13 +14,33 @@ Gem::Specification.new do |s| s.description = "Provides sortable_columns helper in active admin resource definitions." s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] - s.test_files = Dir["test/**/*"] - s.add_dependency "rails", "~> 3.2.5" + s.add_dependency "rails", ">= 3.2.5", "< 4.2.0" + # Development server + s.add_development_dependency "thin" + + # Development database s.add_development_dependency "sqlite3" - + # Documentation - s.add_development_dependency "yard" - s.add_development_dependency "thin" + s.add_development_dependency "yard" + + # Dummy app + s.add_development_dependency 'activeadmin' + s.add_development_dependency 'awesome_nested_set' + s.add_development_dependency 'coffee-rails' + s.add_development_dependency 'sass-rails' + + # Tests + s.add_development_dependency 'capybara' + s.add_development_dependency 'rspec-rails' + s.add_development_dependency 'shoulda-matchers' + s.add_development_dependency 'factory_girl_rails', '~> 1.0' + + # Test automation + s.add_development_dependency 'guard-rspec' + s.add_development_dependency 'guard-bundler' + s.add_development_dependency 'rb-inotify', '~> 0.9' end + diff --git a/config/locales/active_admin-awesome_nested_set.de.yml b/config/locales/active_admin-awesome_nested_set.de.yml index cd0846e..6bc8eeb 100644 --- a/config/locales/active_admin-awesome_nested_set.de.yml +++ b/config/locales/active_admin-awesome_nested_set.de.yml @@ -1,9 +1,9 @@ de: awesome_nested_set: - moved_to_top: "%{resource} an die erste Position verschoben" + moved_to_top: "%{resource} an die erste Position verschoben" moved_up: "%{resource} nach oben verschoben" moved_down: "%{resource} nach unten verschoben" - moved_to_bottom: "%{resource} an die letzte Position verschoben" + moved_to_bottom: "%{resource} an die letzte Position verschoben" illegal_move_to_top: "Konnte %{resource} nicht n die erste Position verschieben" illegal_move_up: "Konnte %{resource} nicht nach oben verschieben" illegal_move_down: "Konnte %{resource} nicht nach unten verschieben" diff --git a/config/locales/active_admin-awesome_nested_set.en.yml b/config/locales/active_admin-awesome_nested_set.en.yml new file mode 100644 index 0000000..b044653 --- /dev/null +++ b/config/locales/active_admin-awesome_nested_set.en.yml @@ -0,0 +1,10 @@ +en: + awesome_nested_set: + moved_to_top: "%{resource} shifted to the first position" + moved_up: "%{resource} shifted upward" + moved_down: "%{resource} shifted downward" + moved_to_bottom: "%{resource} moved to the last position" + illegal_move_to_top: "%{resource} could not be moved to the first position" + illegal_move_up: "%{resource} could not be moved upward" + illegal_move_down: "%{resource} could not be moved downward" + illegal_move_to_bottom: "%{resource} could not be moved to the last position" diff --git a/lib/active_admin-awesome_nested_set.rb b/lib/active_admin-awesome_nested_set.rb index f0c8885..068a9cb 100644 --- a/lib/active_admin-awesome_nested_set.rb +++ b/lib/active_admin-awesome_nested_set.rb @@ -1,10 +1,13 @@ +require 'active_admin' + require 'active_admin/awesome_nested_set/engine' require 'active_admin/awesome_nested_set/version' require 'active_admin/awesome_nested_set/helper' require 'active_admin/views/index_as_nested_set' -module ActiveAdminActsAsList +module ActiveAdminActsAsAwesomeNestedSet end ActiveAdmin::ResourceDSL.send :include, ActiveAdmin::AwesomeNestedSet::Helper ActiveAdmin::Views::IndexAsTable.send :include, ActiveAdmin::AwesomeNestedSet::Helper +ActiveAdmin::Views::Pages::Show.send :include, ActiveAdmin::AwesomeNestedSet::Helper diff --git a/lib/active_admin/awesome_nested_set/helper.rb b/lib/active_admin/awesome_nested_set/helper.rb index 2c34a61..53fd1da 100644 --- a/lib/active_admin/awesome_nested_set/helper.rb +++ b/lib/active_admin/awesome_nested_set/helper.rb @@ -38,7 +38,7 @@ def sortable_tree_indented_column column_name # ActiveAdmin.register Player do # index do # # This adds columns for moving up and down. - # sortable_tree_columns + # sortable_tree_columns # #... # column :firstname # column :lastname @@ -46,11 +46,10 @@ def sortable_tree_indented_column column_name # end # end def sortable_tree_columns - column "▲".html_safe do |resource| - link_to("▲".html_safe, self.send(:"move_up_admin_#{resource.class.model_name.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.left_sibling + link_to("▲".html_safe, self.send(:"move_up_admin_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.left_sibling end column "▼".html_safe do |resource| - link_to("▼".html_safe, self.send(:"move_down_admin_#{resource.class.model_name.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.right_sibling + link_to("▼".html_safe, self.send(:"move_down_admin_#{resource.class.model_name.to_s.underscore.gsub("/", "_")}_path", resource), :class => "arrow") if resource.right_sibling end end @@ -64,31 +63,32 @@ def sortable_tree_columns # ActiveAdmin.register Player do # # Sort players by position # config.sort_order = 'lft_asc' - # + # # # Add member actions for positioning. # sortable_tree_member_actions # end def sortable_tree_member_actions member_action :move_up do unless resource.left_sibling - redirect_to :back, :notice => I18n.t('awesome_nested_set.illegal_move_up', :resource => resource_class.to_s.camelize.constantize.model_name.human ) + redirect_to :back, :notice => I18n.t('awesome_nested_set.illegal_move_up', :resource => resource_class.to_s.camelize.constantize.model_name.human ) return - end - + end + resource.move_left redirect_to :back, :notice => I18n.t('awesome_nested_set.moved_up', :resource => resource_class.to_s.camelize.constantize.model_name.human ) end member_action :move_down do unless resource.right_sibling - redirect_to :back, :notice => I18n.t('awesome_nested_set.illegal_move_down', :resource => resource_class.to_s.camelize.constantize.model_name.human ) + redirect_to :back, :notice => I18n.t('awesome_nested_set.illegal_move_down', :resource => resource_class.to_s.camelize.constantize.model_name.human ) return - end - + end + resource.move_right redirect_to :back, :notice => I18n.t('awesome_nested_set.moved_down', :resource => resource_class.to_s.camelize.constantize.model_name.human ) - end + end end end - end -end + end +end + diff --git a/lib/active_admin/awesome_nested_set/version.rb b/lib/active_admin/awesome_nested_set/version.rb index d901624..6fe4434 100644 --- a/lib/active_admin/awesome_nested_set/version.rb +++ b/lib/active_admin/awesome_nested_set/version.rb @@ -1,5 +1,6 @@ module ActiveAdmin module AwesomeNestedSet - VERSION = "0.0.2" - end + VERSION = "0.0.6" + end end + diff --git a/test/dummy/README.rdoc b/spec/dummy/README.rdoc similarity index 100% rename from test/dummy/README.rdoc rename to spec/dummy/README.rdoc diff --git a/test/dummy/Rakefile b/spec/dummy/Rakefile similarity index 100% rename from test/dummy/Rakefile rename to spec/dummy/Rakefile diff --git a/spec/dummy/app/admin/admin_users.rb b/spec/dummy/app/admin/admin_users.rb new file mode 100644 index 0000000..3aac52f --- /dev/null +++ b/spec/dummy/app/admin/admin_users.rb @@ -0,0 +1,20 @@ +ActiveAdmin.register AdminUser do + index do + column :email + column :current_sign_in_at + column :last_sign_in_at + column :sign_in_count + default_actions + end + + filter :email + + form do |f| + f.inputs "Admin Details" do + f.input :email + f.input :password + f.input :password_confirmation + end + f.actions + end +end diff --git a/spec/dummy/app/admin/categories.rb b/spec/dummy/app/admin/categories.rb new file mode 100644 index 0000000..299abce --- /dev/null +++ b/spec/dummy/app/admin/categories.rb @@ -0,0 +1,24 @@ +ActiveAdmin.register Category do + # Set the default sort order. + config.sort_order = 'lft_asc' + + # Add member actions for positioning. + sortable_tree_member_actions + + form do |f| + f.inputs do + f.input :parent + f.input :name + end # f.inputs + f.actions + end # form + + index do + # This adds columns for moving up, down, top and bottom. + sortable_tree_columns + + sortable_tree_indented_column :name + default_actions + end # index +end # ActiveAdmin.register Category + diff --git a/spec/dummy/app/admin/dashboard.rb b/spec/dummy/app/admin/dashboard.rb new file mode 100644 index 0000000..6083757 --- /dev/null +++ b/spec/dummy/app/admin/dashboard.rb @@ -0,0 +1,33 @@ +ActiveAdmin.register_page "Dashboard" do + + menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") } + + content :title => proc{ I18n.t("active_admin.dashboard") } do + div :class => "blank_slate_container", :id => "dashboard_default_message" do + span :class => "blank_slate" do + span I18n.t("active_admin.dashboard_welcome.welcome") + small I18n.t("active_admin.dashboard_welcome.call_to_action") + end + end + + # Here is an example of a simple dashboard with columns and panels. + # + # columns do + # column do + # panel "Recent Posts" do + # ul do + # Post.recent(5).map do |post| + # li link_to(post.title, admin_post_path(post)) + # end + # end + # end + # end + + # column do + # panel "Info" do + # para "Welcome to ActiveAdmin." + # end + # end + # end + end # content +end diff --git a/spec/dummy/app/assets/javascripts/active_admin.js b/spec/dummy/app/assets/javascripts/active_admin.js new file mode 100644 index 0000000..d2b66c5 --- /dev/null +++ b/spec/dummy/app/assets/javascripts/active_admin.js @@ -0,0 +1 @@ +//= require active_admin/base diff --git a/test/dummy/app/assets/javascripts/application.js b/spec/dummy/app/assets/javascripts/application.js similarity index 100% rename from test/dummy/app/assets/javascripts/application.js rename to spec/dummy/app/assets/javascripts/application.js diff --git a/spec/dummy/app/assets/stylesheets/active_admin.css.scss b/spec/dummy/app/assets/stylesheets/active_admin.css.scss new file mode 100644 index 0000000..0f919ef --- /dev/null +++ b/spec/dummy/app/assets/stylesheets/active_admin.css.scss @@ -0,0 +1,29 @@ +// SASS variable overrides must be declared before loading up Active Admin's styles. +// +// To view the variables that Active Admin provides, take a look at +// `app/assets/stylesheets/active_admin/mixins/_variables.css.scss` in the +// Active Admin source. +// +// For example, to change the sidebar width: +// $sidebar-width: 242px; + +// Active Admin's got SASS! +@import "active_admin/mixins"; +@import "active_admin/base"; + +// Overriding any non-variable SASS must be done after the fact. +// For example, to change the default status-tag color: +// +// body.active_admin { +// .status_tag { background: #6090DB; } +// } +// +// Notice that Active Admin CSS rules are nested within a +// 'body.active_admin' selector to prevent conflicts with +// other pages in the app. It is best to wrap your changes in a +// namespace so they are properly recognized. You have options +// if you e.g. want different styles for different namespaces: +// +// .active_admin applies to any Active Admin namespace +// .admin_namespace applies to the admin namespace (eg: /admin) +// .other_namespace applies to a custom namespace named other (eg: /other) diff --git a/test/dummy/app/assets/stylesheets/application.css b/spec/dummy/app/assets/stylesheets/application.css similarity index 100% rename from test/dummy/app/assets/stylesheets/application.css rename to spec/dummy/app/assets/stylesheets/application.css diff --git a/test/dummy/app/controllers/application_controller.rb b/spec/dummy/app/controllers/application_controller.rb similarity index 100% rename from test/dummy/app/controllers/application_controller.rb rename to spec/dummy/app/controllers/application_controller.rb diff --git a/test/dummy/app/helpers/application_helper.rb b/spec/dummy/app/helpers/application_helper.rb similarity index 100% rename from test/dummy/app/helpers/application_helper.rb rename to spec/dummy/app/helpers/application_helper.rb diff --git a/test/dummy/app/mailers/.gitkeep b/spec/dummy/app/mailers/.gitkeep similarity index 100% rename from test/dummy/app/mailers/.gitkeep rename to spec/dummy/app/mailers/.gitkeep diff --git a/test/dummy/app/models/.gitkeep b/spec/dummy/app/models/.gitkeep similarity index 100% rename from test/dummy/app/models/.gitkeep rename to spec/dummy/app/models/.gitkeep diff --git a/spec/dummy/app/models/admin_user.rb b/spec/dummy/app/models/admin_user.rb new file mode 100644 index 0000000..4a1624f --- /dev/null +++ b/spec/dummy/app/models/admin_user.rb @@ -0,0 +1,11 @@ +class AdminUser < ActiveRecord::Base + # Include default devise modules. Others available are: + # :token_authenticatable, :confirmable, + # :lockable, :timeoutable and :omniauthable + devise :database_authenticatable, + :recoverable, :rememberable, :trackable, :validatable + + # Setup accessible (or protected) attributes for your model + attr_accessible :email, :password, :password_confirmation, :remember_me + # attr_accessible :title, :body +end diff --git a/spec/dummy/app/models/category.rb b/spec/dummy/app/models/category.rb new file mode 100644 index 0000000..8c12344 --- /dev/null +++ b/spec/dummy/app/models/category.rb @@ -0,0 +1,13 @@ +class Category < ActiveRecord::Base + # attributes + attr_accessible :name, + :parent_id + + # tree support + acts_as_nested_set + default_scope :order => 'lft ASC' + + # validations + validates :name, :presence => true +end + diff --git a/test/dummy/app/views/layouts/application.html.erb b/spec/dummy/app/views/layouts/application.html.erb similarity index 100% rename from test/dummy/app/views/layouts/application.html.erb rename to spec/dummy/app/views/layouts/application.html.erb diff --git a/test/dummy/config.ru b/spec/dummy/config.ru similarity index 100% rename from test/dummy/config.ru rename to spec/dummy/config.ru diff --git a/test/dummy/config/application.rb b/spec/dummy/config/application.rb similarity index 86% rename from test/dummy/config/application.rb rename to spec/dummy/config/application.rb index 14d1702..19d660b 100644 --- a/test/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -1,9 +1,18 @@ require File.expand_path('../boot', __FILE__) -require 'rails/all' - -Bundler.require +# Pick the frameworks you want: +require "active_record/railtie" +require "action_controller/railtie" +require "action_mailer/railtie" +require "active_resource/railtie" +require "sprockets/railtie" +# require "rails/test_unit/railtie" + +require "active_admin" +require "awesome_nested_set" require "active_admin-awesome_nested_set" +# Bundler.require + module Dummy class Application < Rails::Application @@ -54,6 +63,10 @@ class Application < Rails::Application # Version of your assets, change this if you want to expire all your assets config.assets.version = '1.0' + + config.generators do |g| + g.test_framework :rspec, :fixture_replacement => :factory_girl + end end end diff --git a/test/dummy/config/boot.rb b/spec/dummy/config/boot.rb similarity index 100% rename from test/dummy/config/boot.rb rename to spec/dummy/config/boot.rb diff --git a/test/dummy/config/database.yml b/spec/dummy/config/database.yml similarity index 100% rename from test/dummy/config/database.yml rename to spec/dummy/config/database.yml diff --git a/test/dummy/config/environment.rb b/spec/dummy/config/environment.rb similarity index 100% rename from test/dummy/config/environment.rb rename to spec/dummy/config/environment.rb diff --git a/test/dummy/config/environments/development.rb b/spec/dummy/config/environments/development.rb similarity index 100% rename from test/dummy/config/environments/development.rb rename to spec/dummy/config/environments/development.rb diff --git a/test/dummy/config/environments/production.rb b/spec/dummy/config/environments/production.rb similarity index 100% rename from test/dummy/config/environments/production.rb rename to spec/dummy/config/environments/production.rb diff --git a/test/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb similarity index 100% rename from test/dummy/config/environments/test.rb rename to spec/dummy/config/environments/test.rb diff --git a/spec/dummy/config/initializers/active_admin.rb b/spec/dummy/config/initializers/active_admin.rb new file mode 100644 index 0000000..4a4f3a2 --- /dev/null +++ b/spec/dummy/config/initializers/active_admin.rb @@ -0,0 +1,152 @@ +ActiveAdmin.setup do |config| + + # == Site Title + # + # Set the title that is displayed on the main layout + # for each of the active admin pages. + # + config.site_title = "Dummy" + + # Set the link url for the title. For example, to take + # users to your main site. Defaults to no link. + # + # config.site_title_link = "/" + + # Set an optional image to be displayed for the header + # instead of a string (overrides :site_title) + # + # Note: Recommended image height is 21px to properly fit in the header + # + # config.site_title_image = "/images/logo.png" + + # == Default Namespace + # + # Set the default namespace each administration resource + # will be added to. + # + # eg: + # config.default_namespace = :hello_world + # + # This will create resources in the HelloWorld module and + # will namespace routes to /hello_world/* + # + # To set no namespace by default, use: + # config.default_namespace = false + # + # Default: + # config.default_namespace = :admin + # + # You can customize the settings for each namespace by using + # a namespace block. For example, to change the site title + # within a namespace: + # + # config.namespace :admin do |admin| + # admin.site_title = "Custom Admin Title" + # end + # + # This will ONLY change the title for the admin section. Other + # namespaces will continue to use the main "site_title" configuration. + + # == User Authentication + # + # Active Admin will automatically call an authentication + # method in a before filter of all controller actions to + # ensure that there is a currently logged in admin user. + # + # This setting changes the method which Active Admin calls + # within the controller. + config.authentication_method = :authenticate_admin_user! + + + # == Current User + # + # Active Admin will associate actions with the current + # user performing them. + # + # This setting changes the method which Active Admin calls + # to return the currently logged in user. + config.current_user_method = :current_admin_user + + + # == Logging Out + # + # Active Admin displays a logout link on each screen. These + # settings configure the location and method used for the link. + # + # This setting changes the path where the link points to. If it's + # a string, the strings is used as the path. If it's a Symbol, we + # will call the method to return the path. + # + # Default: + config.logout_link_path = :destroy_admin_user_session_path + + # This setting changes the http method used when rendering the + # link. For example :get, :delete, :put, etc.. + # + # Default: + # config.logout_link_method = :get + + # == Root + # + # Set the action to call for the root path. You can set different + # roots for each namespace. + # + # Default: + # config.root_to = 'dashboard#index' + + # == Admin Comments + # + # Admin comments allow you to add comments to any model for admin use. + # Admin comments are enabled by default. + # + # Default: + # config.allow_comments = true + # + # You can turn them on and off for any given namespace by using a + # namespace config block. + # + # Eg: + # config.namespace :without_comments do |without_comments| + # without_comments.allow_comments = false + # end + + + # == Batch Actions + # + # Enable and disable Batch Actions + # + config.batch_actions = true + + + # == Controller Filters + # + # You can add before, after and around filters to all of your + # Active Admin resources and pages from here. + # + # config.before_filter :do_something_awesome + + + # == Register Stylesheets & Javascripts + # + # We recommend using the built in Active Admin layout and loading + # up your own stylesheets / javascripts to customize the look + # and feel. + # + # To load a stylesheet: + # config.register_stylesheet 'my_stylesheet.css' + + # You can provide an options hash for more control, which is passed along to stylesheet_link_tag(): + # config.register_stylesheet 'my_print_stylesheet.css', :media => :print + # + # To load a javascript file: + # config.register_javascript 'my_javascript.js' + + + # == CSV options + # + # Set the CSV builder separator (default is ",") + # config.csv_column_separator = ',' + # + # Set the CSV builder options (default is {}) + # config.csv_options = {} +end diff --git a/test/dummy/config/initializers/backtrace_silencers.rb b/spec/dummy/config/initializers/backtrace_silencers.rb similarity index 100% rename from test/dummy/config/initializers/backtrace_silencers.rb rename to spec/dummy/config/initializers/backtrace_silencers.rb diff --git a/spec/dummy/config/initializers/devise.rb b/spec/dummy/config/initializers/devise.rb new file mode 100644 index 0000000..36253f1 --- /dev/null +++ b/spec/dummy/config/initializers/devise.rb @@ -0,0 +1,240 @@ +# Use this hook to configure devise mailer, warden hooks and so forth. +# Many of these configuration options can be set straight in your model. +Devise.setup do |config| + # ==> Mailer Configuration + # Configure the e-mail address which will be shown in Devise::Mailer, + # note that it will be overwritten if you use your own mailer class with default "from" parameter. + config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com" + + # Configure the class responsible to send e-mails. + # config.mailer = "Devise::Mailer" + + # ==> ORM configuration + # Load and configure the ORM. Supports :active_record (default) and + # :mongoid (bson_ext recommended) by default. Other ORMs may be + # available as additional gems. + require 'devise/orm/active_record' + + # ==> Configuration for any authentication mechanism + # Configure which keys are used when authenticating a user. The default is + # just :email. You can configure it to use [:username, :subdomain], so for + # authenticating a user, both parameters are required. Remember that those + # parameters are used only when authenticating and not when retrieving from + # session. If you need permissions, you should implement that in a before filter. + # You can also supply a hash where the value is a boolean determining whether + # or not authentication should be aborted when the value is not present. + # config.authentication_keys = [ :email ] + + # Configure parameters from the request object used for authentication. Each entry + # given should be a request method and it will automatically be passed to the + # find_for_authentication method and considered in your model lookup. For instance, + # if you set :request_keys to [:subdomain], :subdomain will be used on authentication. + # The same considerations mentioned for authentication_keys also apply to request_keys. + # config.request_keys = [] + + # Configure which authentication keys should be case-insensitive. + # These keys will be downcased upon creating or modifying a user and when used + # to authenticate or find a user. Default is :email. + config.case_insensitive_keys = [ :email ] + + # Configure which authentication keys should have whitespace stripped. + # These keys will have whitespace before and after removed upon creating or + # modifying a user and when used to authenticate or find a user. Default is :email. + config.strip_whitespace_keys = [ :email ] + + # Tell if authentication through request.params is enabled. True by default. + # It can be set to an array that will enable params authentication only for the + # given strategies, for example, `config.params_authenticatable = [:database]` will + # enable it only for database (email + password) authentication. + # config.params_authenticatable = true + + # Tell if authentication through HTTP Basic Auth is enabled. False by default. + # It can be set to an array that will enable http authentication only for the + # given strategies, for example, `config.http_authenticatable = [:token]` will + # enable it only for token authentication. + # config.http_authenticatable = false + + # If http headers should be returned for AJAX requests. True by default. + # config.http_authenticatable_on_xhr = true + + # The realm used in Http Basic Authentication. "Application" by default. + # config.http_authentication_realm = "Application" + + # It will change confirmation, password recovery and other workflows + # to behave the same regardless if the e-mail provided was right or wrong. + # Does not affect registerable. + # config.paranoid = true + + # By default Devise will store the user in session. You can skip storage for + # :http_auth and :token_auth by adding those symbols to the array below. + # Notice that if you are skipping storage for all authentication paths, you + # may want to disable generating routes to Devise's sessions controller by + # passing :skip => :sessions to `devise_for` in your config/routes.rb + config.skip_session_storage = [:http_auth] + + # ==> Configuration for :database_authenticatable + # For bcrypt, this is the cost for hashing the password and defaults to 10. If + # using other encryptors, it sets how many times you want the password re-encrypted. + # + # Limiting the stretches to just one in testing will increase the performance of + # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use + # a value less than 10 in other environments. + config.stretches = Rails.env.test? ? 1 : 10 + + # Setup a pepper to generate the encrypted password. + # config.pepper = "6fb5ec58c114603c82d1edbf7949032c66a29bf80b0df7faf72d4be505291470e77c3551fc43c0d6d53bf70a9ac1883e6dc2b293fc2bb749b4b4ccbcdb15196e" + + # ==> Configuration for :confirmable + # A period that the user is allowed to access the website even without + # confirming his account. For instance, if set to 2.days, the user will be + # able to access the website for two days without confirming his account, + # access will be blocked just in the third day. Default is 0.days, meaning + # the user cannot access the website without confirming his account. + # config.allow_unconfirmed_access_for = 2.days + + # A period that the user is allowed to confirm their account before their + # token becomes invalid. For example, if set to 3.days, the user can confirm + # their account within 3 days after the mail was sent, but on the fourth day + # their account can't be confirmed with the token any more. + # Default is nil, meaning there is no restriction on how long a user can take + # before confirming their account. + # config.confirm_within = 3.days + + # If true, requires any email changes to be confirmed (exactly the same way as + # initial account confirmation) to be applied. Requires additional unconfirmed_email + # db field (see migrations). Until confirmed new email is stored in + # unconfirmed email column, and copied to email column on successful confirmation. + config.reconfirmable = true + + # Defines which key will be used when confirming an account + # config.confirmation_keys = [ :email ] + + # ==> Configuration for :rememberable + # The time the user will be remembered without asking for credentials again. + # config.remember_for = 2.weeks + + # If true, extends the user's remember period when remembered via cookie. + # config.extend_remember_period = false + + # Options to be passed to the created cookie. For instance, you can set + # :secure => true in order to force SSL only cookies. + # config.rememberable_options = {} + + # ==> Configuration for :validatable + # Range for password length. Default is 8..128. + config.password_length = 8..128 + + # Email regex used to validate email formats. It simply asserts that + # an one (and only one) @ exists in the given string. This is mainly + # to give user feedback and not to assert the e-mail validity. + # config.email_regexp = /\A[^@]+@[^@]+\z/ + + # ==> Configuration for :timeoutable + # The time you want to timeout the user session without activity. After this + # time the user will be asked for credentials again. Default is 30 minutes. + # config.timeout_in = 30.minutes + + # If true, expires auth token on session timeout. + # config.expire_auth_token_on_timeout = false + + # ==> Configuration for :lockable + # Defines which strategy will be used to lock an account. + # :failed_attempts = Locks an account after a number of failed attempts to sign in. + # :none = No lock strategy. You should handle locking by yourself. + # config.lock_strategy = :failed_attempts + + # Defines which key will be used when locking and unlocking an account + # config.unlock_keys = [ :email ] + + # Defines which strategy will be used to unlock an account. + # :email = Sends an unlock link to the user email + # :time = Re-enables login after a certain amount of time (see :unlock_in below) + # :both = Enables both strategies + # :none = No unlock strategy. You should handle unlocking by yourself. + # config.unlock_strategy = :both + + # Number of authentication tries before locking an account if lock_strategy + # is failed attempts. + # config.maximum_attempts = 20 + + # Time interval to unlock the account if :time is enabled as unlock_strategy. + # config.unlock_in = 1.hour + + # ==> Configuration for :recoverable + # + # Defines which key will be used when recovering the password for an account + # config.reset_password_keys = [ :email ] + + # Time interval you can reset your password with a reset password key. + # Don't put a too small interval or your users won't have the time to + # change their passwords. + config.reset_password_within = 6.hours + + # ==> Configuration for :encryptable + # Allow you to use another encryption algorithm besides bcrypt (default). You can use + # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1, + # :authlogic_sha512 (then you should set stretches above to 20 for default behavior) + # and :restful_authentication_sha1 (then you should set stretches to 10, and copy + # REST_AUTH_SITE_KEY to pepper) + # config.encryptor = :sha512 + + # ==> Configuration for :token_authenticatable + # Defines name of the authentication token params key + # config.token_authentication_key = :auth_token + + # ==> Scopes configuration + # Turn scoped views on. Before rendering "sessions/new", it will first check for + # "users/sessions/new". It's turned off by default because it's slower if you + # are using only default views. + # config.scoped_views = false + + # Configure the default scope given to Warden. By default it's the first + # devise role declared in your routes (usually :user). + # config.default_scope = :user + + # Set this configuration to false if you want /users/sign_out to sign out + # only the current scope. By default, Devise signs out all scopes. + # config.sign_out_all_scopes = true + + # ==> Navigation configuration + # Lists the formats that should be treated as navigational. Formats like + # :html, should redirect to the sign in page when the user does not have + # access, but formats like :xml or :json, should return 401. + # + # If you have any extra navigational formats, like :iphone or :mobile, you + # should add them to the navigational formats lists. + # + # The "*/*" below is required to match Internet Explorer requests. + # config.navigational_formats = ["*/*", :html] + + # The default HTTP method used to sign out a resource. Default is :delete. + config.sign_out_via = :delete + + # ==> OmniAuth + # Add a new OmniAuth provider. Check the wiki for more information on setting + # up on your models and hooks. + # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo' + + # ==> Warden configuration + # If you want to use other strategies, that are not supported by Devise, or + # change the failure app, you can configure them inside the config.warden block. + # + # config.warden do |manager| + # manager.intercept_401 = false + # manager.default_strategies(:scope => :user).unshift :some_external_strategy + # end + + # ==> Mountable engine configurations + # When using Devise inside an engine, let's call it `MyEngine`, and this engine + # is mountable, there are some extra configurations to be taken into account. + # The following options are available, assuming the engine is mounted as: + # + # mount MyEngine, at: "/my_engine" + # + # The router that invoked `devise_for`, in the example above, would be: + # config.router_name = :my_engine + # + # When using omniauth, Devise cannot automatically set Omniauth path, + # so you need to do it manually. For the users scope, it would be: + # config.omniauth_path_prefix = "/my_engine/users/auth" +end diff --git a/test/dummy/config/initializers/inflections.rb b/spec/dummy/config/initializers/inflections.rb similarity index 100% rename from test/dummy/config/initializers/inflections.rb rename to spec/dummy/config/initializers/inflections.rb diff --git a/test/dummy/config/initializers/mime_types.rb b/spec/dummy/config/initializers/mime_types.rb similarity index 100% rename from test/dummy/config/initializers/mime_types.rb rename to spec/dummy/config/initializers/mime_types.rb diff --git a/test/dummy/config/initializers/secret_token.rb b/spec/dummy/config/initializers/secret_token.rb similarity index 100% rename from test/dummy/config/initializers/secret_token.rb rename to spec/dummy/config/initializers/secret_token.rb diff --git a/test/dummy/config/initializers/session_store.rb b/spec/dummy/config/initializers/session_store.rb similarity index 80% rename from test/dummy/config/initializers/session_store.rb rename to spec/dummy/config/initializers/session_store.rb index 952473f..aa2f512 100644 --- a/test/dummy/config/initializers/session_store.rb +++ b/spec/dummy/config/initializers/session_store.rb @@ -1,6 +1,6 @@ # Be sure to restart your server when you modify this file. -Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' +Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information diff --git a/test/dummy/config/initializers/wrap_parameters.rb b/spec/dummy/config/initializers/wrap_parameters.rb similarity index 92% rename from test/dummy/config/initializers/wrap_parameters.rb rename to spec/dummy/config/initializers/wrap_parameters.rb index 999df20..da4fb07 100644 --- a/test/dummy/config/initializers/wrap_parameters.rb +++ b/spec/dummy/config/initializers/wrap_parameters.rb @@ -5,7 +5,7 @@ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] + wrap_parameters :format => [:json] end # Disable root element in JSON by default. diff --git a/spec/dummy/config/locales/active_admin.en.yml b/spec/dummy/config/locales/active_admin.en.yml new file mode 100644 index 0000000..adc1644 --- /dev/null +++ b/spec/dummy/config/locales/active_admin.en.yml @@ -0,0 +1,82 @@ +en: + active_admin: + dashboard: Dashboard + dashboard_welcome: + welcome: "Welcome to Active Admin. This is the default dashboard page." + call_to_action: "To add dashboard sections, checkout 'app/admin/dashboards.rb'" + view: "View" + edit: "Edit" + delete: "Delete" + delete_confirmation: "Are you sure you want to delete this?" + new_model: "New %{model}" + create_model: "New %{model}" + edit_model: "Edit %{model}" + update_model: "Edit %{model}" + delete_model: "Delete %{model}" + details: "%{model} Details" + cancel: "Cancel" + empty: "Empty" + previous: "Previous" + next: "Next" + download: "Download:" + has_many_new: "Add New %{model}" + has_many_delete: "Delete" + filter: "Filter" + clear_filters: "Clear Filters" + search_field: "Search %{field}" + equal_to: "Equal To" + greater_than: "Greater Than" + less_than: "Less Than" + main_content: "Please implement %{model}#main_content to display content." + logout: "Logout" + powered_by: "Powered by %{active_admin} %{version}" + sidebars: + filters: "Filters" + pagination: + empty: "No %{model} found" + one: "Displaying 1 %{model}" + one_page: "Displaying all %{n} %{model}" + multiple: "Displaying %{model} %{from} - %{to} of %{total} in total" + entry: + one: "entry" + other: "entries" + any: "Any" + blank_slate: + content: "There are no %{resource_name} yet." + link: "Create one" + batch_actions: + button_label: "Batch Actions" + delete_confirmation: "Are you sure you want to delete these %{plural_model}? You won't be able to undo this." + succesfully_destroyed: + one: "Successfully destroyed 1 %{model}" + other: "Successfully destroyed %{count} %{plural_model}" + selection_toggle_explanation: "(Toggle Selection)" + link: "Create one" + action_label: "%{title} Selected" + labels: + destroy: "Delete" + comments: + body: "Body" + author: "Author" + title: "Comment" + add: "Add Comment" + resource: "Resource" + no_comments_yet: "No comments yet." + title_content: "Comments (%{count})" + errors: + empty_text: "Comment wasn't saved, text was empty." + devise: + login: + title: "Login" + remember_me: "Remember me" + submit: "Login" + reset_password: + title: "Forgot your password?" + submit: "Reset My Password" + change_password: + title: "Change your password" + submit: "Change my password" + links: + sign_in: "Sign in" + forgot_your_password: "Forgot your password?" + diff --git a/spec/dummy/config/locales/devise.en.yml b/spec/dummy/config/locales/devise.en.yml new file mode 100644 index 0000000..d01f375 --- /dev/null +++ b/spec/dummy/config/locales/devise.en.yml @@ -0,0 +1,59 @@ +# Additional translations at https://github.com/plataformatec/devise/wiki/I18n + +en: + devise: + confirmations: + confirmed: "Your account was successfully confirmed. You are now signed in." + send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes." + send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes." + failure: + already_authenticated: "You are already signed in." + inactive: "Your account was not activated yet." + invalid: "Invalid email or password." + invalid_token: "Invalid authentication token." + locked: "Your account is locked." + not_found_in_database: "Invalid email or password." + timeout: "Your session expired, please sign in again to continue." + unauthenticated: "You need to sign in or sign up before continuing." + unconfirmed: "You have to confirm your account before continuing." + mailer: + confirmation_instructions: + subject: "Confirmation instructions" + reset_password_instructions: + subject: "Reset password instructions" + unlock_instructions: + subject: "Unlock Instructions" + omniauth_callbacks: + failure: "Could not authenticate you from %{kind} because \"%{reason}\"." + success: "Successfully authenticated from %{kind} account." + passwords: + no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided." + send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes." + send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes." + updated: "Your password was changed successfully. You are now signed in." + updated_not_active: "Your password was changed successfully." + registrations: + destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon." + signed_up: "Welcome! You have signed up successfully." + signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated." + signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked." + signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account." + update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address." + updated: "You updated your account successfully." + sessions: + signed_in: "Signed in successfully." + signed_out: "Signed out successfully." + unlocks: + send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes." + send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes." + unlocked: "Your account has been unlocked successfully. Please sign in to continue." + errors: + messages: + already_confirmed: "was already confirmed, please try signing in" + confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one" + expired: "has expired, please request a new one" + not_found: "not found" + not_locked: "was not locked" + not_saved: + one: "1 error prohibited this %{resource} from being saved:" + other: "%{count} errors prohibited this %{resource} from being saved:" diff --git a/test/dummy/config/locales/en.yml b/spec/dummy/config/locales/en.yml similarity index 100% rename from test/dummy/config/locales/en.yml rename to spec/dummy/config/locales/en.yml diff --git a/test/dummy/config/routes.rb b/spec/dummy/config/routes.rb similarity index 95% rename from test/dummy/config/routes.rb rename to spec/dummy/config/routes.rb index eb8579b..2d2b3b8 100644 --- a/test/dummy/config/routes.rb +++ b/spec/dummy/config/routes.rb @@ -1,4 +1,8 @@ Dummy::Application.routes.draw do + ActiveAdmin.routes(self) + + devise_for :admin_users, ActiveAdmin::Devise.config + # The priority is based upon order of creation: # first created -> highest priority. diff --git a/spec/dummy/db/development.sqlite3 b/spec/dummy/db/development.sqlite3 new file mode 100644 index 0000000..ee4ea83 Binary files /dev/null and b/spec/dummy/db/development.sqlite3 differ diff --git a/spec/dummy/db/migrate/20130228120819_devise_create_admin_users.rb b/spec/dummy/db/migrate/20130228120819_devise_create_admin_users.rb new file mode 100644 index 0000000..ed09342 --- /dev/null +++ b/spec/dummy/db/migrate/20130228120819_devise_create_admin_users.rb @@ -0,0 +1,52 @@ +class DeviseCreateAdminUsers < ActiveRecord::Migration + def migrate(direction) + super + # Create a default user + AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password') if direction == :up + end + + def change + create_table(:admin_users) do |t| + ## Database authenticatable + t.string :email, :null => false, :default => "" + t.string :encrypted_password, :null => false, :default => "" + + ## Recoverable + t.string :reset_password_token + t.datetime :reset_password_sent_at + + ## Rememberable + t.datetime :remember_created_at + + ## Trackable + t.integer :sign_in_count, :default => 0 + t.datetime :current_sign_in_at + t.datetime :last_sign_in_at + t.string :current_sign_in_ip + t.string :last_sign_in_ip + + ## Confirmable + # t.string :confirmation_token + # t.datetime :confirmed_at + # t.datetime :confirmation_sent_at + # t.string :unconfirmed_email # Only if using reconfirmable + + ## Lockable + # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts + # t.string :unlock_token # Only if unlock strategy is :email or :both + # t.datetime :locked_at + + ## Token authenticatable + # t.string :authentication_token + + + t.timestamps + end + + add_index :admin_users, :email, :unique => true + add_index :admin_users, :reset_password_token, :unique => true + # add_index :admin_users, :confirmation_token, :unique => true + # add_index :admin_users, :unlock_token, :unique => true + # add_index :admin_users, :authentication_token, :unique => true + end +end diff --git a/spec/dummy/db/migrate/20130228120821_create_admin_notes.rb b/spec/dummy/db/migrate/20130228120821_create_admin_notes.rb new file mode 100644 index 0000000..e106af3 --- /dev/null +++ b/spec/dummy/db/migrate/20130228120821_create_admin_notes.rb @@ -0,0 +1,17 @@ +class CreateAdminNotes < ActiveRecord::Migration + def self.up + create_table :admin_notes do |t| + t.string :resource_id, :null => false + t.string :resource_type, :null => false + t.references :admin_user, :polymorphic => true + t.text :body + t.timestamps + end + add_index :admin_notes, [:resource_type, :resource_id] + add_index :admin_notes, [:admin_user_type, :admin_user_id] + end + + def self.down + drop_table :admin_notes + end +end diff --git a/spec/dummy/db/migrate/20130228120822_move_admin_notes_to_comments.rb b/spec/dummy/db/migrate/20130228120822_move_admin_notes_to_comments.rb new file mode 100644 index 0000000..8833359 --- /dev/null +++ b/spec/dummy/db/migrate/20130228120822_move_admin_notes_to_comments.rb @@ -0,0 +1,26 @@ +class MoveAdminNotesToComments < ActiveRecord::Migration + def self.up + remove_index :admin_notes, [:admin_user_type, :admin_user_id] + rename_table :admin_notes, :active_admin_comments + rename_column :active_admin_comments, :admin_user_type, :author_type + rename_column :active_admin_comments, :admin_user_id, :author_id + add_column :active_admin_comments, :namespace, :string + add_index :active_admin_comments, [:namespace] + add_index :active_admin_comments, [:author_type, :author_id] + + # Update all the existing comments to the default namespace + say "Updating any existing comments to the #{ActiveAdmin.application.default_namespace} namespace." + comments_table_name = ActiveRecord::Migrator.proper_table_name("active_admin_comments") + execute "UPDATE #{comments_table_name} SET namespace='#{ActiveAdmin.application.default_namespace}'" + end + + def self.down + remove_index :active_admin_comments, :column => [:author_type, :author_id] + remove_index :active_admin_comments, :column => [:namespace] + remove_column :active_admin_comments, :namespace + rename_column :active_admin_comments, :author_id, :admin_user_id + rename_column :active_admin_comments, :author_type, :admin_user_type + rename_table :active_admin_comments, :admin_notes + add_index :admin_notes, [:admin_user_type, :admin_user_id] + end +end diff --git a/spec/dummy/db/migrate/20130228121407_create_categories.rb b/spec/dummy/db/migrate/20130228121407_create_categories.rb new file mode 100644 index 0000000..0a61373 --- /dev/null +++ b/spec/dummy/db/migrate/20130228121407_create_categories.rb @@ -0,0 +1,15 @@ +class CreateCategories < ActiveRecord::Migration + def change + create_table :categories do |t| + t.string :name + + # awesome nested set + t.integer :lft + t.integer :rgt + t.integer :parent_id + t.integer :depth + + t.timestamps + end + end +end diff --git a/spec/dummy/db/schema.rb b/spec/dummy/db/schema.rb new file mode 100644 index 0000000..3f42d54 --- /dev/null +++ b/spec/dummy/db/schema.rb @@ -0,0 +1,58 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended to check this file into your version control system. + +ActiveRecord::Schema.define(:version => 20130228121407) do + + create_table "active_admin_comments", :force => true do |t| + t.string "resource_id", :null => false + t.string "resource_type", :null => false + t.integer "author_id" + t.string "author_type" + t.text "body" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.string "namespace" + end + + add_index "active_admin_comments", ["author_type", "author_id"], :name => "index_active_admin_comments_on_author_type_and_author_id" + add_index "active_admin_comments", ["namespace"], :name => "index_active_admin_comments_on_namespace" + add_index "active_admin_comments", ["resource_type", "resource_id"], :name => "index_admin_notes_on_resource_type_and_resource_id" + + create_table "admin_users", :force => true do |t| + t.string "email", :default => "", :null => false + t.string "encrypted_password", :default => "", :null => false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", :default => 0 + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.string "current_sign_in_ip" + t.string "last_sign_in_ip" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + add_index "admin_users", ["email"], :name => "index_admin_users_on_email", :unique => true + add_index "admin_users", ["reset_password_token"], :name => "index_admin_users_on_reset_password_token", :unique => true + + create_table "categories", :force => true do |t| + t.string "name" + t.integer "lft" + t.integer "rgt" + t.integer "parent_id" + t.integer "depth" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + +end diff --git a/spec/dummy/db/test.sqlite3 b/spec/dummy/db/test.sqlite3 new file mode 100644 index 0000000..66ec560 Binary files /dev/null and b/spec/dummy/db/test.sqlite3 differ diff --git a/test/dummy/lib/assets/.gitkeep b/spec/dummy/lib/assets/.gitkeep similarity index 100% rename from test/dummy/lib/assets/.gitkeep rename to spec/dummy/lib/assets/.gitkeep diff --git a/test/dummy/log/.gitkeep b/spec/dummy/log/.gitkeep similarity index 100% rename from test/dummy/log/.gitkeep rename to spec/dummy/log/.gitkeep diff --git a/spec/dummy/log/test.log b/spec/dummy/log/test.log new file mode 100644 index 0000000..7f6ed0a --- /dev/null +++ b/spec/dummy/log/test.log @@ -0,0 +1,34336 @@ +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.4ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:18:42 UTC +00:00], ["depth", nil], ["lft", nil], ["name", nil], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:18:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (1.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:18:42 UTC +00:00], ["depth", nil], ["lft", nil], ["name", nil], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:18:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:18:46 UTC +00:00], ["depth", nil], ["lft", nil], ["name", nil], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:18:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:18:46 UTC +00:00], ["depth", nil], ["lft", nil], ["name", nil], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:18:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (1.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.7ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:19:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", nil], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:19:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (1.4ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:19:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", nil], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:19:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:21:07 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #1"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:21:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:21:07 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #2"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:21:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:21:27 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #1"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:21:27 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (1.4ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:21:27 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #2"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:21:27 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.4ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:21:34 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #1"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:21:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (1.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:21:34 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #2"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:21:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$PavgfngO415NLow8Sa22nORPZBYslCOiyJ39xzGrn0ajchUsGKES2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (22.4ms) +Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:43.522022', "current_sign_in_at" = '2013-02-28 12:23:43.521305', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:43.521305', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (19.1ms) +Completed 200 OK in 27ms (Views: 21.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$Dip5m7tzpvVrAbdlk9IfWeX/37i0Ho8T9Ss4IBOV6NhTx07pzx.Le"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:43.643076', "current_sign_in_at" = '2013-02-28 12:23:43.642513', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:43.642513', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (55.2ms) +Completed 200 OK in 62ms (Views: 55.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (15.3ms) +Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$VCemm02AdTvwVK4QOX8dNOmyTyufkdQ2vXF7bqL7ifHwHe0fxPcoS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:43.751314', "current_sign_in_at" = '2013-02-28 12:23:43.750770', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:43.750770', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.8ms) +Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.1ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "depth"=>"", "lft"=>"", "rgt"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$SGchJeCwj9BmfxcMEd8ehujfPmyRv.ZvYIVtVeKQ0m2JfUZooRbw6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.5ms) +Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:43.864032', "current_sign_in_at" = '2013-02-28 12:23:43.863474', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:43.863474', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.5ms) +Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.1ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "depth"=>"", "lft"=>"", "rgt"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +Completed 500 Internal Server Error in 1ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$CWyW.jOWvF26aarGeNgsy.7pd4AEU3l3DFQR.Q2zaNhBkJlbEKSzy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:43.920505', "current_sign_in_at" = '2013-02-28 12:23:43.919962', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:43.919962', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (57.0ms) +Completed 200 OK in 58ms (Views: 57.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #1"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #2"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #3"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:23:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.3ms) +Completed 200 OK in 139ms (Views: 136.1ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$zy5zxyO6J77MkTM9Ld2peuiIYt3U7Xz6ECpaq0IYBoO/Gbw4zGHn6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:44.150846', "current_sign_in_at" = '2013-02-28 12:23:44.150088', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:44.150088', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #4"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #5"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #6"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.8ms) +Completed 200 OK in 129ms (Views: 127.1ms | ActiveRecord: 0.4ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$eo2HXHZEru/Z73HUEXvlI.LO/Ts/wTqVhUoHqdP4.VyX1W3QVdK7y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:44.372511', "current_sign_in_at" = '2013-02-28 12:23:44.371902', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:44.371902', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (59.5ms) +Completed 200 OK in 61ms (Views: 60.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #7"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #8"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #9"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.6ms) +Completed 200 OK in 130ms (Views: 127.9ms | ActiveRecord: 0.4ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$0/V.5Tp4OY3riIgw/ZaKY.LDcro4w.yJrJOOFxZ5df.mlE8ukUUHm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:44.594276', "current_sign_in_at" = '2013-02-28 12:23:44.593737', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:44.593737', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (57.8ms) +Completed 200 OK in 59ms (Views: 58.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #10"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (19.6ms) +Completed 200 OK in 28ms (Views: 20.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$6DMOoVBdwI/Tk/u6w/aUguY9F2K5izZVkUbwLuVa4JiYw3HuQvepq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:44.711201', "current_sign_in_at" = '2013-02-28 12:23:44.710609', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:44.710609', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.1ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #11"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (66.2ms) +Completed 200 OK in 68ms (Views: 66.7ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$hxO.Vts2Bu.68oeWsfi52uLH0NfQA89Z4Qe91L85R1QAe/w/m6t.K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:44.816075', "current_sign_in_at" = '2013-02-28 12:23:44.815524', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:44.815524', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #12"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.5ms) +Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "depth"=>"", "lft"=>"", "rgt"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +Completed 500 Internal Server Error in 2ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$GOa/rNgKm4950DDpEF1Aru9lu5xRpOBdsXO9yh.rlGpe9dVkaL.le"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.1ms) +Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:44.881412', "current_sign_in_at" = '2013-02-28 12:23:44.880869', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:44.880869', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (4.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 59ms (Views: 6.3ms | ActiveRecord: 4.0ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #13"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.4ms) +Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "depth"=>"", "lft"=>"", "rgt"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +Completed 500 Internal Server Error in 1ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$31cEc/CFjKUY3.YMo8WMMOH.RwoSzMNKOa4lJYm5H0Gh3TLgZn4L6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.4ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:44.992321', "current_sign_in_at" = '2013-02-28 12:23:44.991735', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:44.991735', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #14"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (72.1ms) +Completed 200 OK in 74ms (Views: 72.5ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "depth"=>"", "lft"=>"", "rgt"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +Completed 500 Internal Server Error in 2ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$SOC/3ntKU5H5loI/nFohwOnByf.kw56OB2TBe5XQkAx/ihozrj0gi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:45.108052', "current_sign_in_at" = '2013-02-28 12:23:45.107513', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:45.107513', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #15"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (78.8ms) +Completed 200 OK in 82ms (Views: 79.6ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 8ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (112.5ms) +Completed 200 OK in 114ms (Views: 112.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$WZnbG9dd2w4YN8hcRhn/4OHvvJWz8s7aBD6p6mklqQP5VXMCsU6UO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:45.352582', "current_sign_in_at" = '2013-02-28 12:23:45.352045', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:45.352045', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #16"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (69.8ms) +Completed 200 OK in 72ms (Views: 70.1ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (112.0ms) +Completed 200 OK in 114ms (Views: 112.4ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$YhgtGUu3GxonSg4X8AdKyOuwP.4gfDAnYyc22g6PlD3GUZp3Dk/Iu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-02-28 12:23:45.584058', "current_sign_in_at" = '2013-02-28 12:23:45.583518', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:23:45.583518', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #17"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:23:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.5ms) +Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #18"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #19"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:23:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$Xa5qOX8Ek57kUHm.DB0cZueY96DTjjfNAPwWz61SC3d5Q5imfjJyO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (22.6ms) +Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:00.257521', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:00.257521', "updated_at" = '2013-02-28 12:25:00.258900' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.5ms) +Completed 200 OK in 62ms (Views: 12.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #1"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (9.1ms) +Completed 500 Internal Server Error in 14ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$QSnNFaAQE4XI86X7c2JBvOloTJlV88p7h40poK8AJjXbIGg4ubg0q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:00.374643', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:00.374643', "updated_at" = '2013-02-28 12:25:00.375187' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #2"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (58.4ms) +Completed 500 Internal Server Error in 61ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$f4epbX8xwXy4RGFkVNUh4ezJHKqlgOpAq0Fe/57N0w0Lb5PRoinKO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:00.472080', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:00.472080', "updated_at" = '2013-02-28 12:25:00.472632' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #3"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.3ms) +Completed 500 Internal Server Error in 16ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$8JnlpoRYruBMNLHgrQ8yMOQWmNFzq8PNufcfII3ukVGS3RGhQcEMy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:00.524119', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:00.524119', "updated_at" = '2013-02-28 12:25:00.524584' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (56.1ms) +Completed 200 OK in 58ms (Views: 56.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #4"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (8.1ms) +Completed 500 Internal Server Error in 10ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$23bxsWAIHevI7kTF5Id2Xu8eUcXNn5Ts/qqdv5xDQNO1b6CwgJmhi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:00.621911', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:00.621911', "updated_at" = '2013-02-28 12:25:00.622456' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #5"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (8.5ms) +Completed 500 Internal Server Error in 10ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$GQYJz35MTnGuOO/GNJZoSOMqsXG.O31iB3fvsDfJhTsar5Qvu/WIy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:00.723488', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:00.723488', "updated_at" = '2013-02-28 12:25:00.724103' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #6"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (25.2ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 56ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (64.0ms) +Completed 200 OK in 68ms (Views: 65.0ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$PI8GPRye/lvb4cUcnwKlU.T.nWlrQVxTym8s9FZjGpzsBQu.OFX5S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (61.6ms) +Completed 200 OK in 63ms (Views: 62.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:00.978980', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:00.978980', "updated_at" = '2013-02-28 12:25:00.979545' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #7"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:25:00 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.6ms) +Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 3ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (111.2ms) +Completed 200 OK in 113ms (Views: 111.6ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$PJkhaIvFsR12rhgLWGEaqOIa7AmQ6Wzs1Dm42NC4YOYvxOYqFJu/."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.5ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:01.153480', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:01.153480', "updated_at" = '2013-02-28 12:25:01.154026' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (61.1ms) +Completed 200 OK in 62ms (Views: 61.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #8"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.7ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$9JR9hDNI.XxvWCbBWMxosumE7oNAotPXcn67J5JEv1wluOvWr.1tS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:01.264418', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:01.264418', "updated_at" = '2013-02-28 12:25:01.265755' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #9"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #10"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #11"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (181.2ms) +Completed 200 OK in 183ms (Views: 181.4ms | ActiveRecord: 0.4ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$eyzhgnOVNJMFeYjYFGMfceUfhbdkN6fsVmPyCIkSdFfF7ZYZh.1W2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:01.486192', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:01.486192', "updated_at" = '2013-02-28 12:25:01.486778' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #12"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #13"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #14"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (182.0ms) +Completed 200 OK in 184ms (Views: 182.2ms | ActiveRecord: 0.4ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$4BwHeaE7ub.UenNUVOnHmOzHj8ohhtSBGBp4.BJAzOYXQvTTAV0Ci"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.6ms) +Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:01.708262', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:01.708262', "updated_at" = '2013-02-28 12:25:01.708789' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #15"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #16"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["depth", nil], ["lft", nil], ["name", "Category #17"], ["parent_id", nil], ["rgt", nil], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (177.0ms) +Completed 200 OK in 179ms (Views: 177.4ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$cFDjlbJgwcjV10kRm8.T8Ox3sJgL9rNphJp1w81s8HhhFxgjnayhK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:01.935615', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:01.935615', "updated_at" = '2013-02-28 12:25:01.936165' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (7.6ms) +Completed 500 Internal Server Error in 11ms +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$DZ5cyoBcIw5ILJ/zv9YEvO3f5W/CxMHlXc1m0zK5LDcHT43KZtxa."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 63ms (Views: 62.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:02.035369', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:02.035369', "updated_at" = '2013-02-28 12:25:02.035933' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (7.3ms) +Completed 500 Internal Server Error in 9ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$R.k1AvL5gIf15gUT63dCLejhBe6DvKbUNyvYGUGESsZF8f5eStzvS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:02.078567', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:02.078567', "updated_at" = '2013-02-28 12:25:02.079133' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (63.6ms) +Completed 500 Internal Server Error in 65ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:25:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$seuIrC4Res2NVBHcDs0xjO.8sx0PueLe8UxHBXqLIf0lc7JbepYwO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:25:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:25:02.180612', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:25:02.180612', "updated_at" = '2013-02-28 12:25:02.181234' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:25:02 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (7.2ms) +Completed 500 Internal Server Error in 9ms +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$ufEn3y/OWYvXnqyifadVn.mTdN12S0ZLgw0NAjWwfAiDrQacOGsmW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.9ms) +Completed 200 OK in 31ms (Views: 30.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:21.406743', "last_sign_in_at" = '2013-02-28 12:28:21.406743', "updated_at" = '2013-02-28 12:28:21.407579', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #3"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.9ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (198.5ms) +Completed 200 OK in 203ms (Views: 199.6ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$Q6KvtwjisuwFu2Qs0A/eWuRJfjzZPwK8/FBaF6HQdiU3er2RUMhne"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.3ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:21.671309', "last_sign_in_at" = '2013-02-28 12:28:21.671309', "updated_at" = '2013-02-28 12:28:21.671821', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #5"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #6"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (185.7ms) +Completed 200 OK in 188ms (Views: 185.9ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$eWHQfC8B29fdFYpqU.hMJeKsyfZ7ddBFXZm0NwJTbrcq//R42Bbgq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:21.902931', "last_sign_in_at" = '2013-02-28 12:28:21.902931', "updated_at" = '2013-02-28 12:28:21.903461', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #9"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (187.4ms) +Completed 200 OK in 189ms (Views: 187.6ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$AGHD3SqZfpEHL982lvpuFOKWQVLXmqlsijvp/7YMncGwVO1VQpQPu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:22.136933', "last_sign_in_at" = '2013-02-28 12:28:22.136933', "updated_at" = '2013-02-28 12:28:22.137462', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (77.3ms) +Completed 200 OK in 82ms (Views: 79.0ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$APkvfD.VLczyXtCYJnFn7ulaamF5PXBn3Eiz947zt8qZkoJrxXZ6C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:22.257172', "last_sign_in_at" = '2013-02-28 12:28:22.257172', "updated_at" = '2013-02-28 12:28:22.257704', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #11"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (13.5ms) +Completed 200 OK in 16ms (Views: 13.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$V4COR5pe2qFL0dp5X76tCOwSYWvsLSfc7lrwiHNgRFvgrg7MwsN4."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:22.386854', "last_sign_in_at" = '2013-02-28 12:28:22.386854', "updated_at" = '2013-02-28 12:28:22.387425', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.8ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (13.9ms) +Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +Completed 500 Internal Server Error in 2ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$ou2I4wkbSwXtLvnpW7ED8.xztSiYk6w3aVtLXSrivVYCERbTRvOXW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:22.446817', "last_sign_in_at" = '2013-02-28 12:28:22.446817', "updated_at" = '2013-02-28 12:28:22.447341', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (10.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.7ms) +Completed 200 OK in 74ms (Views: 15.2ms | ActiveRecord: 10.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +Completed 500 Internal Server Error in 1ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$Ahsl9Z0EacVMD0GHoss7zuceCMok/gnPm9DFxeXvSzm3dXiDirrYC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:22.563454', "last_sign_in_at" = '2013-02-28 12:28:22.563454', "updated_at" = '2013-02-28 12:28:22.563980', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #14"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.1ms) +Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +Completed 500 Internal Server Error in 2ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$4kz/kJTwG6/.YqDtVGEgx.4.ykY2kJqdBG.KwbU2sL8X1oa9OxVx6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:22.674323', "last_sign_in_at" = '2013-02-28 12:28:22.674323', "updated_at" = '2013-02-28 12:28:22.674896', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (79.5ms) +Completed 200 OK in 83ms (Views: 80.3ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (113.5ms) +Completed 200 OK in 116ms (Views: 113.8ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$V8sXus1RH4foIUoGFp9XJ.9I8qN9/QQrFcjTOkwpPEoGYd34TK.ku"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:22.931939', "last_sign_in_at" = '2013-02-28 12:28:22.931939', "updated_at" = '2013-02-28 12:28:22.932443', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:22 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (67.2ms) +Completed 200 OK in 69ms (Views: 67.6ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (119.5ms) +Completed 200 OK in 122ms (Views: 120.0ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$xaIUuhVSFO0uQQBFdYW9eeZzgwBAFgvYspdXFmJt.0wvF2RLQ1Rya"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:23.174336', "last_sign_in_at" = '2013-02-28 12:28:23.174336', "updated_at" = '2013-02-28 12:28:23.174871', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.7ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.7ms) +Completed 200 OK in 19ms (Views: 16.5ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$231bxqiXGk5sWer3ClQbHOAE6ysGIbkCTvZ5hJfmmZSpnQlATfUh."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 60ms (Views: 59.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:23.283299', "last_sign_in_at" = '2013-02-28 12:28:23.283299', "updated_at" = '2013-02-28 12:28:23.284746', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.2ms) +Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$F/yuQhXkyPLd6ZsyNhUYEu7BM8W9YfpsoWGERJoQS2ZIjHt64vQDW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.3ms) +Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:23.340946', "last_sign_in_at" = '2013-02-28 12:28:23.340946', "updated_at" = '2013-02-28 12:28:23.341469', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (65.5ms) +Completed 200 OK in 67ms (Views: 65.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$h48.eDKCY/GwWJZGnolwVuwz8NBX2EcBXJimPIeudloNgrVQoGcqS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:23.444535', "last_sign_in_at" = '2013-02-28 12:28:23.444535', "updated_at" = '2013-02-28 12:28:23.445059', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.4ms) +Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +Completed 500 Internal Server Error in 3ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$UUYcntJGVO3ITOuByERf9uFNBdlrn/g3AasIiq.Bzvd0eWe7WvBry"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:23.500655', "last_sign_in_at" = '2013-02-28 12:28:23.500655', "updated_at" = '2013-02-28 12:28:23.553127', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 62ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.0ms) +Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.9ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:23 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +Completed 500 Internal Server Error in 1ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$3MLdZRMcnD9jlePCZ5cOb.JMFpGlAgvSQBF2lo.9uqv/QvdOMtREC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.3ms) +Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:47.572925', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:47.572925', "updated_at" = '2013-02-28 12:28:47.573619' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (21.3ms) +Completed 200 OK in 29ms (Views: 22.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$tUwwx2Uf38aAlNoIKoSak.Zjsq2.8WSYFvT2KTkQ3tb.Gm2KckDY6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 55ms (Views: 54.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:47.700125', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:47.700125', "updated_at" = '2013-02-28 12:28:47.700685' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (11.2ms) +Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (11.8ms) +Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$I13RlhE5QSQQOM68Ie0bxOqm/NMkWUaF4NaB/qAZPWK7RH9Ua8Oy2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:47.753795', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:47.753795', "updated_at" = '2013-02-28 12:28:47.754319' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (63.8ms) +Completed 200 OK in 65ms (Views: 64.2ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00]] + Category Load (1.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (24.9ms) +Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$PxEuUg.yeuI4rqZbX2OUlO0C92NbZKdJ1RcEmbHdg9NbkFl574l06"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:47.956244', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:47.956244', "updated_at" = '2013-02-28 12:28:47.956785' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.2ms) +Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:47 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (67.4ms) +Completed 200 OK in 69ms (Views: 67.7ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$/3xTPFbRSQqfJNP83nxzC.5DMmRSjvKJ3/TBQG.O0u71iM3LRaZPu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:48.085265', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:48.085265', "updated_at" = '2013-02-28 12:28:48.085815' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.2ms) +Completed 200 OK in 75ms (Views: 73.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$uxpBxXwJiZCS3jpBNN55AeUHeRdPQJ.9vuEQAxugVyD3GC4vKOUXG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.5ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:48.200953', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:48.200953', "updated_at" = '2013-02-28 12:28:48.202073' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.9ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 60ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.3ms) +Completed 200 OK in 129ms (Views: 126.2ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$g7ssqGYnpvkNGfPKMEXnXOPD.Iip6jc6kZR3IW/6pojQXY0X80Vda"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:48.455347', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:48.455347', "updated_at" = '2013-02-28 12:28:48.455895' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.0ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (116.2ms) +Completed 200 OK in 118ms (Views: 116.4ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$IWTbE2j79h.an9dr69SMDesXQPEBQypjTGXBnM2jZRW05TshZBSKi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (56.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (63.0ms) +Completed 200 OK in 65ms (Views: 64.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:48.699187', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:48.699187', "updated_at" = '2013-02-28 12:28:48.699759' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (20.5ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$1ECbyl0GJHK3tc3dpvA6t.q72uQ3mnPuiDV7CG9lJdi0TyQv0ZJQK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:48.760669', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:48.760669', "updated_at" = '2013-02-28 12:28:48.761121' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.3ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.7ms) +Completed 200 OK in 67ms (Views: 65.4ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$7ajNXUqmBXn3Rl93xDpHMOvwMfH0kaBqed1RRUj/DHG2NM/Rojcxa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:48.865968', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:48.865968', "updated_at" = '2013-02-28 12:28:48.866575' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.3ms) +Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 12:28:48.906496', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 68ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.2ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.1ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.3ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$YtZ69RPoPGKRgJXY0q/9C.AQVhjTuJn8TYUdmLjAGoQs8RUfirl1a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:49.014502', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:49.014502', "updated_at" = '2013-02-28 12:28:49.015031' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.5ms) +Completed 200 OK in 69ms (Views: 22.5ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 12:28:49.106890', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (21.3ms) +Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$6hy0wLI1B.UC5lz5rDIO8eUu2HeVDjKZ6PBHNR6GxJRBvGS3pxOPK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:49.207608', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:49.207608', "updated_at" = '2013-02-28 12:28:49.208200' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.3ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.3ms) +Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 12:28:49.247962', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (66.6ms) +Completed 200 OK in 68ms (Views: 67.0ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$38e90KrfOU.8sjCO9ijGlulior3sX2VSfxYoQMzp6NWM/h2L1FipK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.6ms) +Completed 200 OK in 14ms (Views: 13.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:49.349929', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:49.349929', "updated_at" = '2013-02-28 12:28:49.350469' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #11"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.9ms) +Completed 200 OK in 194ms (Views: 192.0ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$7UmLt1V/fTyTYwaMoZ/Fx.8.wuyujU6xi38oV6PiaAtSty.DfZuAO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:49.589409', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:49.589409', "updated_at" = '2013-02-28 12:28:49.589961' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #13"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #14"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (185.9ms) +Completed 200 OK in 189ms (Views: 186.1ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$xkwCnv4rVtfsisFmpNiqZuw9H7fn5dOa9K5OdPphc4f2T9UAb22Jq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-02-28 12:28:49.823409', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 12:28:49.823409', "updated_at" = '2013-02-28 12:28:49.823949' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #16"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #17"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (2.3ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (186.4ms) +Completed 200 OK in 189ms (Views: 184.5ms | ActiveRecord: 2.7ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:52 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$liGAYzqPjva5.ktcuCZ14.4OBYQcDFR4RuRz3/DudHGG2xaLRXceK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:52 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:52 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.2ms) +Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.054100', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.054834', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.054100' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (21.1ms) +Completed 200 OK in 29ms (Views: 23.4ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$U9tH87uG6n7UMBmYvVAly.p60Lrb4PKZYCdK6q.9X8FuYeUc5NXpS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (57.6ms) +Completed 200 OK in 59ms (Views: 58.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.181870', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.182467', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.181870' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.5ms) +Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$whyrNUChZQRBo4KpWuDY..PrS17FsMpoZF./ecWj4aO5QFrn./xRe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.235750', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.236280', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.235750' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (65.0ms) +Completed 200 OK in 67ms (Views: 65.4ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.4ms) +Completed 200 OK in 76ms (Views: 73.2ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$EjU.FYTKocB2HjNtGpkEXe2pumalQk/P/tZVLpHL.kH5.WK8S1q9y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 14ms (Views: 14.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.439390', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.439893', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.439390' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.4ms) +Completed 200 OK in 14ms (Views: 12.8ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (70.1ms) +Completed 200 OK in 72ms (Views: 70.4ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$/OnBqdwDzUYk9AY2eCdqzun/goxQi8joHHWYnoJUImlPq2AEblowW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.574183', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.575515', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.574183' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.8ms) +Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$46xYiN6AJJ1hekr4MppGDOsXaX.UrIjfIubygPGGJf5Smn7eDurQy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (65.4ms) +Completed 200 OK in 67ms (Views: 66.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.691506', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.692082', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.691506' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.1ms) +Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$ANDpemT5aidAsUnLvKm8b.y6mduI7GuNsZ3zu5ItnxJSdfK/l6PYa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.5ms) +Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.6ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.744542', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.745089', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.744542' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (71.6ms) +Completed 200 OK in 74ms (Views: 71.9ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 12:28:53.843140', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.7ms) +Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$/P/9vKpy5rpeWV0XTHExuOryNnYMwHXR3/y.dbUFsrZKB6G1AVKSi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (59.2ms) +Completed 200 OK in 61ms (Views: 60.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:53.944591', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:53.945077', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:53.944591' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:53 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (13.9ms) +Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 12:28:53.982749', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:53 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.0ms) +Completed 200 OK in 75ms (Views: 73.3ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$HDDNMc1.aOaEFGY4A10txOrLHa22bQhRHdcGoutXJKg97ECup/a2y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:54.085929', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:54.086514', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:54.085929' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.8ms) +Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "categories" SET "updated_at" = '2013-02-28 12:28:54.124664', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (68.8ms) +Completed 200 OK in 70ms (Views: 69.1ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$k0fYJgXbC3BHFuoKhFSaWu4SQTW.V2Z3EF88DkWtjLr6G4NZ0HFXu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:54.222647', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:54.223171', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:54.222647' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (11.2ms) +Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #7"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #8"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (194.4ms) +Completed 200 OK in 198ms (Views: 194.8ms | ActiveRecord: 0.5ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$L.shkfY8nlQl8flxgPTeXenOvt6XLmKkjcmseNNyXHUL44mWcenwm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:54.470196', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:54.470745', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:54.470196' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #11"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.8ms) +Completed 200 OK in 138ms (Views: 136.0ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$hxrHwEaQ3qBxJLkN7kQYKennKX1yu8L24ptVvjkLxO5aEbyyBo3GW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:54.705163', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:54.705690', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:54.705163' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #13"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #14"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."id" desc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.2ms) +Completed 200 OK in 136ms (Views: 133.5ms | ActiveRecord: 0.4ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$RJuBiZEf2/swj/7EBNI5WOW0YW7vQD1AIs7gQCyK6RstF9fmJQo0q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:54.938329', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:54.938853', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:54.938329' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (58.0ms) +Completed 200 OK in 59ms (Views: 58.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.6ms) +Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (110.8ms) +Completed 200 OK in 113ms (Views: 111.2ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$zKKTB5o.54i74xeLCX6HZeSrvpw0ly2wVdx5fOmnHETWbdU.EH5gy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:55.181394', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:55.181914', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:55.181394' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.8ms) +Completed 200 OK in 21ms (Views: 19.3ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.6ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories"  + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (112.5ms) +Completed 200 OK in 114ms (Views: 112.8ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$WbGuI1.sI9AOeD/9d5ztMuXPbg1qAevZuNVKT6Q9UzpWS0OzxFteW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.4ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 12:28:55.423976', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 12:28:55.424499', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 12:28:55.423976' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 13:28:55 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (77.1ms) +Completed 200 OK in 79ms (Views: 77.5ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.3ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 12:28:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$05LbrZrpEjkhbIPV8pS2/u8PrO9.XDrn8Hov.dWYbClbtpv6vTegC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.9ms) +Completed 200 OK in 74ms (Views: 73.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:43.810417', "current_sign_in_at" = '2013-02-28 13:26:43.810417', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:43.811102' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.0ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #3"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 13:26:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:26:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.5ms) +Completed 200 OK in 204ms (Views: 201.2ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$maGBfvT1tN6Mt9X4tU8dMOVYajAIwAon/QXk4maBrWIxwzwfIlHtq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:44.082296', "current_sign_in_at" = '2013-02-28 13:26:44.082296', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:44.082806' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #5"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #6"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (187.0ms) +Completed 200 OK in 189ms (Views: 186.6ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$AwgY1fXMTQ4spPjp5s/GxuGlKvZ2UiWLTEJd7c/GPFC7ytM3UgD6C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:44.313555', "current_sign_in_at" = '2013-02-28 13:26:44.313555', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:44.314080' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.0ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #9"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.6ms) +Completed 200 OK in 133ms (Views: 130.2ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$bq6r.t79Cfko6FYxeHR.P.C55a/aOIiPGQ9r1X7B575i6/FGy3BQO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (60.6ms) +Completed 200 OK in 62ms (Views: 61.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:44.544918', "current_sign_in_at" = '2013-02-28 13:26:44.544918', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:44.545494' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (27.4ms) +Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$0Mq4iVHpr/HzfDWBWgZWn.p46K/LShK8Q9JKVosWYCEOf7S60vgkK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:44.668299', "current_sign_in_at" = '2013-02-28 13:26:44.668299', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:44.668846' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #11"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.0ms) +Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$ZcAKUvDG62dCnH91wLjG3eR2v6k8nguAWtyYFP.f8.mPrEvC3J.be"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:44.724451', "current_sign_in_at" = '2013-02-28 13:26:44.724451', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:44.725090' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (54.7ms) +Completed 200 OK in 56ms (Views: 55.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.4ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.6ms) +Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$X7H0c1RBUDzJnNw5VRyfje06p9p1s.y4ytIgwIb/zwKbdYwWxgsuq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:44.830125', "current_sign_in_at" = '2013-02-28 13:26:44.830125', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:44.830644' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (4.8ms) +Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (64.6ms) +Completed 200 OK in 72ms (Views: 65.0ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-02-28 13:26:44.925741' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.1ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$26Q.1yV0/.jb/D6V/nx73.TH1Zi.CvtRQjjm4MqEZDC3sYXcPQc9q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:44.974703', "current_sign_in_at" = '2013-02-28 13:26:44.974703', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:44.975211' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (57.4ms) +Completed 200 OK in 59ms (Views: 57.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #14"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (20.6ms) +Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-02-28 13:26:45.071018' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.2ms) +Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$HFhfVY1o49RhYbWezYTlyeaq2xbkO2EyIIo4gab5hx0aO3qkTiaQ."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.4ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:45.168177', "current_sign_in_at" = '2013-02-28 13:26:45.168177', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:45.168715' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.5ms) +Completed 200 OK in 17ms (Views: 14.8ms | ActiveRecord: 0.4ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-02-28 13:26:45.207548' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (74.8ms) +Completed 200 OK in 77ms (Views: 75.2ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$H//asCLHHexxwetrFjO/8e2jaRo1lz.lXKJ0vbu9xDlHAXNDL.vGa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:45.312930', "current_sign_in_at" = '2013-02-28 13:26:45.312930', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:45.313461' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.0ms) +Completed 200 OK in 16ms (Views: 13.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$BLRJD/RXw8Pkb9upHoR6bOmE3Ua.UrLJEAZxm8rCdjSLdd3pNSccS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (60.7ms) +Completed 200 OK in 62ms (Views: 61.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:45.417010', "current_sign_in_at" = '2013-02-28 13:26:45.417010', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:45.417576' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.0ms) +Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$uFkILe/O6vpNNnPGx93Tsukn.YMPzHwT.udczA7AHpiBmdeO./YkS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (11.9ms) +Completed 200 OK in 13ms (Views: 12.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:45.470579', "current_sign_in_at" = '2013-02-28 13:26:45.470579', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:45.471090' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (1.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (62.5ms) +Completed 200 OK in 64ms (Views: 62.8ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.6ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$jRLxxi5vzZ.CWMkN5OZUX.3NKuErr0WO9aTXbL.Kh7cWcjQl7/6mu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:45.654102', "current_sign_in_at" = '2013-02-28 13:26:45.654102', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:45.654646' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.6ms) +Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (66.7ms) +Completed 200 OK in 69ms (Views: 67.0ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.5ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$d.VFD8q7Eq4QobStbJhDiet3RmPOf6MlOmGoy5MkjJnviFcQdArx6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:45.790503', "current_sign_in_at" = '2013-02-28 13:26:45.790503', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:45.791040' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (15.9ms) +Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 66ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:26:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (61.2ms) +Completed 200 OK in 64ms (Views: 61.6ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$XFiW8rpXo6H/nNReu3.2qO0vNRoz3WEUNw7m3etBLDhLJwepsJSEG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:26:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:26:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:26:46.036919', "current_sign_in_at" = '2013-02-28 13:26:46.036919', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:26:46.037548' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:26:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:46 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (21.5ms) +Completed 200 OK in 24ms (Views: 21.8ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:26:46 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:26:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (112.0ms) +Completed 200 OK in 114ms (Views: 112.3ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:26:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:26:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$m1GgcZUJUr0TrgqJXLzSWOle2IE.LorbmWBKtcW0Rjky2DtcNC/Si"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.9ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (22.9ms) +Completed 200 OK in 31ms (Views: 30.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:33:32.185686', "updated_at" = '2013-02-28 13:33:32.186452', "current_sign_in_at" = '2013-02-28 13:33:32.185686' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.3ms) +Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.8ms) +Completed 200 OK in 196ms (Views: 192.5ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$2dStoqiPuiDlgsVtKV.ozOGEaHNouXerTgiBrqcwCek0VWXt65WIy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:33:32.445002', "updated_at" = '2013-02-28 13:33:32.445523', "current_sign_in_at" = '2013-02-28 13:33:32.445002' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:33:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:33:32 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.7ms) +Completed 200 OK in 130ms (Views: 127.5ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$u8piY5xGtEJzbV29hoLCcu7SMZpv1/jsuKpIPSnVb/1gQm.sFajcW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.6ms) +Completed 200 OK in 32ms (Views: 31.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:34:04.039754', "current_sign_in_at" = '2013-02-28 13:34:04.039053', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:04.039053' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.0ms) +Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (192.0ms) +Completed 200 OK in 197ms (Views: 193.0ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$B4s6WkLSSImLAkE1d6RSRuUvoIVUDDcknN0RrpybsL7IHTeliVQTO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:34:04.301029', "current_sign_in_at" = '2013-02-28 13:34:04.300429', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:04.300429' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (122.5ms) +Completed 200 OK in 125ms (Views: 122.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$kv/1qmLDtieIpxgGc9nn..aY92wFNG0iSsJZk0CEBn55iyXsEnNwS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.5ms) +Completed 200 OK in 32ms (Views: 31.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:34:21.384807', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:21.384112', "current_sign_in_at" = '2013-02-28 13:34:21.384112' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.0ms) +Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (192.2ms) +Completed 200 OK in 197ms (Views: 193.9ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$8KT79Svzs96PESb6bwD35OYNRNimdvjFAyaAFnO1bPFE6xmW1nimi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:34:21.644558', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:21.644028', "current_sign_in_at" = '2013-02-28 13:34:21.644028' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (122.0ms) +Completed 200 OK in 129ms (Views: 121.8ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.8ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$tF4c7FE8hVRhGTPaYo2kzu0QW2M1qjzVv6swRVXSf1uhXmkSh31aa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.6ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.4ms) +Completed 200 OK in 31ms (Views: 30.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-02-28 13:34:25.311429', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:34:25.312110', "current_sign_in_at" = '2013-02-28 13:34:25.311429', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.8ms) +Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (194.1ms) +Completed 200 OK in 198ms (Views: 195.1ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$BkaMB5VNajEKMtGciYd.XulKZpedxjMd5c2gP2XQ2ao52K191xueO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-02-28 13:34:25.573343', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:34:25.573883', "current_sign_in_at" = '2013-02-28 13:34:25.573343', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (10.9ms) +Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:25 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:25 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (123.8ms) +Completed 200 OK in 126ms (Views: 123.6ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$iTr7lKId.Z46UoevOKFgN.kNk4aaJCnewvgVVGxGj3Ck9IqbtJ2v2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.5ms) +Completed 200 OK in 30ms (Views: 29.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:34:39.354715', "updated_at" = '2013-02-28 13:34:39.356111', "current_sign_in_at" = '2013-02-28 13:34:39.354715', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (193.7ms) +Completed 200 OK in 198ms (Views: 194.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.7ms) +Completed 200 OK in 130ms (Views: 127.6ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$8TYDux4zYcmAcF5WrPBk9eeQiIfZ/R4XdA37DWbDdOdDlc7Stetz6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.5ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:34:39.760421', "updated_at" = '2013-02-28 13:34:39.760923', "current_sign_in_at" = '2013-02-28 13:34:39.760421', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.1ms) +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.9ms) +Completed 200 OK in 127ms (Views: 124.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.8ms) +Completed 200 OK in 129ms (Views: 127.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (3.5ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$rL/CjHnzxH2rq1d99e607.BPu2tcRw8oFOWezT38h2cljPjQjoRb6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.9ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (69.4ms) +Completed 200 OK in 77ms (Views: 75.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:43.206702', "updated_at" = '2013-02-28 13:34:43.212425', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:43.206702' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 16ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.8ms) +Completed 200 OK in 196ms (Views: 192.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.6ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.5ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (123.4ms) +Completed 200 OK in 125ms (Views: 123.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$zaiDCjhSjBr.X/NUYVBn6eFezSSLjywigAqtaA2On6h5DgqAbAyQq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:43.606766', "updated_at" = '2013-02-28 13:34:43.607385', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:43.606766' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 66ms (Views: 65.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.6ms) +Completed 200 OK in 126ms (Views: 124.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 15ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.3ms) +Completed 200 OK in 127ms (Views: 125.1ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$mpKYTjp2AHwAUsC5.yi3uOaZ3xRof29mcta3Vli/PN8HMqUwYoZ.W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.1ms) +Completed 200 OK in 69ms (Views: 68.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:44.040355', "updated_at" = '2013-02-28 13:34:44.041690', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:44.040355' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.7ms) +Completed 200 OK in 17ms (Views: 14.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$WH9ayAxw40n9v9KvzEMox.hWzUGcTc5M1s8Ugz4gz8Sje7TEkhiwO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:44.092190', "updated_at" = '2013-02-28 13:34:44.092701', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:44.092190' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (63.9ms) +Completed 200 OK in 66ms (Views: 64.2ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$/NQai3ryJXhQpQ./.S158.I7ge3MKzOX97gdLv9vdJ.kV/ax1oIV."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:44.193158', "updated_at" = '2013-02-28 13:34:44.193701', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:44.193158' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.0ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.1ms) +Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.3ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 58ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (26.3ms) +Completed 200 OK in 30ms (Views: 27.2ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$y4x5fp9PC3VaEb7Xn157YeNcnKvEQm2nZwxeuM2HsiMw0kqzwIyx6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.6ms) +Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:44.339833', "updated_at" = '2013-02-28 13:34:44.340333', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:44.339833' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (55.1ms) +Completed 200 OK in 56ms (Views: 55.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.6ms) +Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.5ms) +Completed 200 OK in 18ms (Views: 16.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$/EhmKIR.cPI0O/f6c0gUruaa2UHiulkNaxwbOL2PatugnP4efNzvG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (49.8ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (57.0ms) +Completed 200 OK in 59ms (Views: 58.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:44.525281', "updated_at" = '2013-02-28 13:34:44.525863', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:44.525281' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #9"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (6.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.3ms) +Completed 200 OK in 137ms (Views: 128.8ms | ActiveRecord: 7.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$EWgDTwRNyGFBo7SWdzGvHeA/y/dw/2FtOQiB60YbmWpWzYXS8GzKq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:44.706462', "updated_at" = '2013-02-28 13:34:44.707019', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:44.706462' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (57.8ms) +Completed 200 OK in 59ms (Views: 58.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #11"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #12"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.3ms) +Completed 200 OK in 137ms (Views: 134.0ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$yKAr6b/0BBQ1kIBDcN5meeVr3FmYgW2hnPRVGE8rGmzC8uq5/zkDq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.6ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:44.939662', "updated_at" = '2013-02-28 13:34:44.940187', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:44.939662' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (4.8ms) +Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #14"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #15"], ["parent_id", nil], ["rgt", 6], ["updated_at", Thu, 28 Feb 2013 13:34:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.8ms) +Completed 200 OK in 191ms (Views: 136.4ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$zY13yXR/LGf/O/LN7HFlzuslqXLK1haUahr4XlBdIePqyM7Ch0rA6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:45.172721', "updated_at" = '2013-02-28 13:34:45.173129', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:45.172721' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.3ms) +Completed 200 OK in 74ms (Views: 72.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$QhwflPtaaCsBiQWwlYnHX.mRGcFitXB/vl1Rnx/fiBhbpezT98cYK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:45.285449', "updated_at" = '2013-02-28 13:34:45.285966', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:45.285449' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.0ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (68.2ms) +Completed 200 OK in 70ms (Views: 68.6ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (118.6ms) +Completed 200 OK in 120ms (Views: 119.0ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$o.Eme4j9VDlUQBZIar0.n.IQW4WAdMWnLXn/bGP/x/7soU/aqKxX2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.7ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:45.530786', "updated_at" = '2013-02-28 13:34:45.531224', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:45.530786' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.0ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.4ms) +Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (3.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 57ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (119.1ms) +Completed 200 OK in 121ms (Views: 119.5ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$YHP14GjILhS6f7zdSUJKP.dQh1ZqZcPrUIrFICV64S8uefq3ny3om"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:45.770013', "updated_at" = '2013-02-28 13:34:45.770551', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:45.770013' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.1ms) +Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$QsD5tEADrnDDVbYU5ffoQOf5SA3ra5Apv8x2rR6La369P4fbBboqG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:45.825408', "updated_at" = '2013-02-28 13:34:45.825918', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:45.825408' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (62.7ms) +Completed 200 OK in 64ms (Views: 63.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.3ms) +Completed 200 OK in 17ms (Views: 15.7ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$MJOYyQdAsuA0Cx0hvZyQHe1ZwyeGCRmgir0tYnTsAoOvaLBv.fne6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:45.937263', "updated_at" = '2013-02-28 13:34:45.937788', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:45.937263' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #21"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:34:45 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (65.8ms) +Completed 200 OK in 68ms (Views: 66.2ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 13:34:46.028918', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (21.3ms) +Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$Eq8TIBvLv3pLo97hZAQOr.1VeTpdWZRXg2WOul8X0kCSzGC4DFOPq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:46.083002', "updated_at" = '2013-02-28 13:34:46.083581', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:46.083002' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (58.0ms) +Completed 200 OK in 59ms (Views: 58.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.7ms) +Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 13:34:46.175613', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (67.0ms) +Completed 200 OK in 69ms (Views: 67.3ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$EPjur88iq0Er9YsUT/.frOhXXGqIhOLCBXzacU1KQK1j3hIQ4KGfa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-02-28 13:34:46.277999', "updated_at" = '2013-02-28 13:34:46.278533', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:34:46.277999' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #23"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:34:46 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (13.9ms) +Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-02-28 13:34:46.316720', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Thu Feb 28 14:34:46 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (68.7ms) +Completed 200 OK in 71ms (Views: 69.0ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.5ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$a1VzwqFYAwZXcxSAOR5ZH.2WkhEKWc8KDtIieul3xukChT2Es352m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.4ms) +Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:39:17.563345', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:39:17.562605', "current_sign_in_at" = '2013-02-28 13:39:17.562605' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.7ms) +Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (193.4ms) +Completed 200 OK in 197ms (Views: 194.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.3ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.5ms) +Completed 200 OK in 129ms (Views: 127.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$KLvpD3TxYP7X3euNq3bixO00U7ZlChQIWINJkcrgbnuIhof/hHkZa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.3ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:39:17.968718', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:39:17.968203', "current_sign_in_at" = '2013-02-28 13:39:17.968203' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:17 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (4.9ms) +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:17 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.2ms) +Completed 200 OK in 131ms (Views: 129.1ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.6ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.4ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (121.9ms) +Completed 200 OK in 124ms (Views: 121.7ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.7ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$XClUZLUH8TWlpGqW4M3veeXlSy8EZES8gwI9aeIKFSyQ1Go.x2vQe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-02-28 13:39:18.337126', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-02-28 13:39:18.336795', "current_sign_in_at" = '2013-02-28 13:39:18.336795' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 62ms (Views: 13.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:18 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.4ms) +Completed 200 OK in 131ms (Views: 128.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 8ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (123.0ms) +Completed 200 OK in 125ms (Views: 122.8ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$TrFwKnUeC8ZqIC3ffdQo8OBEH3oeWGLnyC2tY2fAufzKiebbUTH4S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.1ms) +Completed 200 OK in 31ms (Views: 30.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:39:37.453313', "updated_at" = '2013-02-28 13:39:37.454044', "current_sign_in_at" = '2013-02-28 13:39:37.453313' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (12.9ms) +Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (192.6ms) +Completed 200 OK in 197ms (Views: 193.7ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (122.6ms) +Completed 200 OK in 124ms (Views: 122.5ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$dhC8cMjwIKKO58fiyJXzVOUBHL.XeJnBGeDcThhBOtsUmPsr07s0y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.4ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:39:37.858933', "updated_at" = '2013-02-28 13:39:37.859455', "current_sign_in_at" = '2013-02-28 13:39:37.858933' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (62.2ms) +Completed 200 OK in 63ms (Views: 62.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.3ms) +Completed 200 OK in 129ms (Views: 126.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.0ms) +Completed 200 OK in 132ms (Views: 129.8ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$jZodtPvQZgvHi/S5WC1NTeCS/gw3Dcdq.AQrFyc/ibg1M3fj699v."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-02-28 13:39:38.294703', "updated_at" = '2013-02-28 13:39:38.295268', "current_sign_in_at" = '2013-02-28 13:39:38.294703' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 18ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:38 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.7ms) +Completed 200 OK in 128ms (Views: 125.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (1.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.1ms) +Completed 200 OK in 135ms (Views: 131.9ms | ActiveRecord: 1.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$3/iDtnGwVZV7bWCGAF76I.K4i8PPXJzAjZYCSgfypX/9ythKTZJ0W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.9ms) +Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 13:39:47.820082', "last_sign_in_at" = '2013-02-28 13:39:47.820082', "updated_at" = '2013-02-28 13:39:47.820958' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:47 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:47 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:47 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (190.6ms) +Completed 200 OK in 195ms (Views: 191.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.6ms) +Completed 200 OK in 130ms (Views: 127.4ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$Z260YDNiGHAwsECjk2cjk.sh/hsCmWcfcVFuc4T0oxksA.Z0YM6Ra"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.3ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 13:39:48.224194', "last_sign_in_at" = '2013-02-28 13:39:48.224194', "updated_at" = '2013-02-28 13:39:48.224717' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.3ms) +Completed 200 OK in 133ms (Views: 130.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.9ms) +Completed 200 OK in 130ms (Views: 127.7ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$H1jX/Z7W9X4o8KPxly1KAe690tz8fk022OUbDBqoUQy49frZFEYZG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-02-28 13:39:48.595617', "last_sign_in_at" = '2013-02-28 13:39:48.595617', "updated_at" = '2013-02-28 13:39:48.596148' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 62ms (Views: 12.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:39:48 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.3ms) +Completed 200 OK in 130ms (Views: 128.1ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.6ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.4ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:39:48 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.8ms) +Completed 200 OK in 127ms (Views: 125.6ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$7hneeipWGGR9YZSCU9g/Feh/S5S6EXPfjdg.KcUJ/AFR1mEvjgqwS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.6ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.4ms) +Completed 200 OK in 31ms (Views: 30.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-02-28 13:40:09.491080', "current_sign_in_at" = '2013-02-28 13:40:09.491080', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-02-28 13:40:09.491777', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.6ms) +Completed 200 OK in 196ms (Views: 192.6ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.0ms) +Completed 200 OK in 130ms (Views: 127.9ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$cleBtGKneTlgX7v8VIRLxuPYOmytwSUm603gpdr2UYwOFANM8GL2G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-02-28 13:40:09.894965', "current_sign_in_at" = '2013-02-28 13:40:09.894965', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-02-28 13:40:09.895477', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (58.1ms) +Completed 200 OK in 59ms (Views: 58.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.2ms) +Completed 200 OK in 133ms (Views: 130.9ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.5ms) +Completed 200 OK in 130ms (Views: 128.2ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$ytesBjLv3qWTNTGz3IhQXOAMsK2e8Iqbqzf4jMy9Vn1Hl7qnKn6Wa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 28 Feb 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-02-28 13:40:10.327624', "current_sign_in_at" = '2013-02-28 13:40:10.327624', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-02-28 13:40:10.328182', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Thu, 28 Feb 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 28 Feb 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Thu, 28 Feb 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.7ms) +Completed 200 OK in 130ms (Views: 127.6ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Thu Feb 28 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.4ms) +Completed 200 OK in 127ms (Views: 124.9ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$G8gPO3E/R/hBDezzzoWhius8rZwYdUi6Oe9CmnKvfBQwo1PYLZIUK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.8ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.7ms) +Completed 200 OK in 33ms (Views: 32.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 10:53:17.417677', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 10:53:17.418385', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 10:53:17.417677' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.1ms) +Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.1ms) +Completed 200 OK in 204ms (Views: 200.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.5ms) +Completed 200 OK in 134ms (Views: 132.3ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$3mUXXZW33EbX41.wIRzjauaH6MLjVsS1v7nUtkdw8DAiXYID3GR4m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 10:53:17.837735', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 10:53:17.838236', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 10:53:17.837735' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.1ms) +Completed 200 OK in 61ms (Views: 60.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:53:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:53:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.9ms) +Completed 200 OK in 135ms (Views: 132.7ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.0ms) +Completed 200 OK in 131ms (Views: 128.6ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$b0zHbqqt/J6uj0XpKFyKS.B26HYZBPoq5O6ttCtRDflrOKTN21Lwe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:53:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.6ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 10:53:18.280097', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 10:53:18.280764', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 10:53:18.280097' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 62ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.2ms) +Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:18 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:53:18 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:53:18 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:53:18 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.2ms) +Completed 200 OK in 138ms (Views: 134.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:53:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.2ms) +Completed 200 OK in 135ms (Views: 132.6ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$OW3ifDz7nGqdYiiUM3uBJOapRjCononvvDnZlOT9qw0hgu6ZK8hHG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:54:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.1ms) +Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:54:14.845933', "updated_at" = '2013-03-01 10:54:14.846654', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:54:14.845933' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:54:14 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.2ms) +Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:14 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:54:14 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:14 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:54:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.1ms) +Completed 200 OK in 208ms (Views: 203.2ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.2ms) +Completed 200 OK in 135ms (Views: 133.1ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$zhESMT2OLPg7CLHoU8/w1eyA2lqdKehcYsrqf7BF5VqOEgj6Y5UzO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:54:15.270376', "updated_at" = '2013-03-01 10:54:15.270896', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:54:15.270376' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.3ms) +Completed 200 OK in 137ms (Views: 134.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.6ms) +Completed 200 OK in 137ms (Views: 134.5ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$rrzYTiPvGEDf.WHzYZxCV.4hdv3pMh128ivbyv3PFkt3kstawig8m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:54:15.657887', "updated_at" = '2013-03-01 10:54:15.658507', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:54:15.657887' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 64ms (Views: 13.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:54:15 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.2ms) +Completed 200 OK in 134ms (Views: 132.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.5ms) +Completed 200 OK in 141ms (Views: 138.3ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$fWN7to.OyeJ70dR.5UjWeO01L9BX5Pywgx/fNk4sLlHMP61cQjzre"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:54:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.1ms) +Completed 200 OK in 31ms (Views: 30.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 10:54:29.923615', "last_sign_in_at" = '2013-03-01 10:54:29.923615', "updated_at" = '2013-03-01 10:54:29.924384', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:54:29 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.0ms) +Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:29 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:54:29 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:29 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:54:29 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:29 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (208.9ms) +Completed 200 OK in 214ms (Views: 209.9ms | ActiveRecord: 1.1ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.7ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 13ms (ActiveRecord: 1.7ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (140.1ms) +Completed 200 OK in 142ms (Views: 139.8ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$pQUlG8NSYb6pGz721JZ0u.akTIobJR0VzQsNV2OpXJmzOrXj1ZJUK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 10:54:30.365177', "last_sign_in_at" = '2013-03-01 10:54:30.365177', "updated_at" = '2013-03-01 10:54:30.365741', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.5ms) +Completed 200 OK in 141ms (Views: 138.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.3ms) +Completed 200 OK in 136ms (Views: 134.2ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$IQhfRbtH2/eWE5iPldz4ZOGYdrw80A4YSwXrFtyf5z4cZOv1UntRO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 10:54:30.759664', "last_sign_in_at" = '2013-03-01 10:54:30.759664', "updated_at" = '2013-03-01 10:54:30.760321', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 65ms (Views: 13.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:54:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.2ms) +Completed 200 OK in 137ms (Views: 134.7ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:54:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.4ms) +Completed 200 OK in 135ms (Views: 132.3ms | ActiveRecord: 0.9ms) +  (5.7ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$nU.LTOzSObkLQzXCtHOEIuyELRZgQlH49IrnXYUzyvNwNyFfDkn1."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:55:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:55:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.1ms) +Completed 200 OK in 33ms (Views: 32.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:55:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:55:12.854151', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:55:12.854151', "sign_in_count" = 1, "updated_at" = '2013-03-01 10:55:12.854742' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:55:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.8ms) +Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:55:12 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:55:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:55:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (215.4ms) +Completed 200 OK in 220ms (Views: 216.6ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 13ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.1ms) +Completed 200 OK in 137ms (Views: 134.9ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$z5CljNbUJOe9mkUGnNZuNO1epGM6yVRPDG/EvCoTlB14rVhyBE7MW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:55:13.297703', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:55:13.297703', "sign_in_count" = 1, "updated_at" = '2013-03-01 10:55:13.298238' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.3ms) +Completed 200 OK in 138ms (Views: 135.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.0ms) +Completed 200 OK in 136ms (Views: 133.7ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$0FWCp5tBF.LTEHa2qKk7aOnwzNMD9z8BgQCJRXQ4mZ6MQ.0Wn5.CS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:55:13.683961', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:55:13.683961', "sign_in_count" = 1, "updated_at" = '2013-03-01 10:55:13.684540' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 66ms (Views: 13.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:55:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.8ms) +Completed 200 OK in 137ms (Views: 134.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:55:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.1ms) +Completed 200 OK in 138ms (Views: 136.0ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$Zwh66H/jVj47ByDQO4Fgo.6uAFLSxV.v0l3llT4XTKAa1oB9yORCe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.9ms) +Completed 200 OK in 33ms (Views: 32.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:17.490750', "updated_at" = '2013-03-01 10:57:17.491468', "current_sign_in_at" = '2013-03-01 10:57:17.490750' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.6ms) +Completed 200 OK in 207ms (Views: 203.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.8ms) +Completed 200 OK in 138ms (Views: 135.4ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$hJLibcG8katlfWUuFUXq3ORtpkTfwp0fmMZCAoXyNKMJZCddRIXT2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:17.918864', "updated_at" = '2013-03-01 10:57:17.919403', "current_sign_in_at" = '2013-03-01 10:57:17.918864' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (59.7ms) +Completed 200 OK in 61ms (Views: 60.2ms | ActiveRecord: 0.0ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.9ms) +Completed 200 OK in 132ms (Views: 129.7ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.1ms) +Completed 200 OK in 137ms (Views: 134.9ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:18 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$Cx.j3ez2Y1GAFZIyp03ViONTeEZyOg1i/HT1oL9Z7jibzgW8H17Wy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:18 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:18.361689', "updated_at" = '2013-03-01 10:57:18.362345', "current_sign_in_at" = '2013-03-01 10:57:18.361689' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:18 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:18 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:18 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:18 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.7ms) +Completed 200 OK in 136ms (Views: 133.4ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:18 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.1ms) +Completed 200 OK in 140ms (Views: 137.5ms | ActiveRecord: 1.2ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$n9NDOi2NJAgH6CRhvkfo3OuakgIRjG1J/bDhARbkRn4vMNL4gyIiO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.7ms) +Completed 200 OK in 31ms (Views: 31.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "updated_at" = '2013-03-01 10:57:44.849891', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:57:44.849208', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:44.849208' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.0ms) +Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:44 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.0ms) +Completed 200 OK in 207ms (Views: 203.1ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.8ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.4ms) +Completed 200 OK in 137ms (Views: 134.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$Cz0S.otWWC5FUyjDv4hMTOwaw09y4WLIG7QSnEdPLfrDToNkjfGja"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "updated_at" = '2013-03-01 10:57:45.273996', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:57:45.273445', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:45.273445' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.8ms) +Completed 200 OK in 135ms (Views: 132.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.0ms) +Completed 200 OK in 134ms (Views: 131.8ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$nh7RwBsW89lhfHRcNh3VyOtT/hwjvKjcoIw2b8H4C4VgF8uV8i8FW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "sign_in_count" = 1, "updated_at" = '2013-03-01 10:57:45.720292', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 10:57:45.719701', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:45.719701' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.5ms) +Completed 200 OK in 134ms (Views: 131.4ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (5.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.3ms) +Completed 200 OK in 138ms (Views: 131.2ms | ActiveRecord: 5.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$ssKPqLESf8oVv0DA8DWL7OTOAg3idXASZUAW1Kjq42EF1w8q2HC9W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.5ms) +Completed 200 OK in 33ms (Views: 31.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 10:57:57.472798', "sign_in_count" = 1, "updated_at" = '2013-03-01 10:57:57.473506', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:57.472798' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.5ms) +Completed 200 OK in 204ms (Views: 200.7ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.4ms) +Completed 200 OK in 136ms (Views: 133.6ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$x6MO5bTMqV1t47YHOeEsgeb4t1VNwasbqLvqwSCcpL5t7i.HPTlVO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 10:57:57.896729', "sign_in_count" = 1, "updated_at" = '2013-03-01 10:57:57.897262', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:57.896729' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (58.8ms) +Completed 200 OK in 60ms (Views: 59.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.8ms) +Completed 200 OK in 135ms (Views: 132.6ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.2ms) +Completed 200 OK in 141ms (Views: 139.0ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:58 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$/bgtG5lFG6/frPU9D1Mp5.mEAFRluiAFp5VjnnvfJoPou3p0mOUB6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:57:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 10:57:58.339908', "sign_in_count" = 1, "updated_at" = '2013-03-01 10:57:58.340481', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:57:58.339908' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:58 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:57:58 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:57:58 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:57:58 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.4ms) +Completed 200 OK in 134ms (Views: 132.3ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:57:58 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.4ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.4ms) +Completed 200 OK in 137ms (Views: 134.0ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$EbicOW03qnE14aqOchuW3e23Eq77AQwv/SLZyBn.f4nVtnUQAAAz."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (28.8ms) +Completed 200 OK in 37ms (Views: 36.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 10:59:21.455557', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:59:21.455557', "updated_at" = '2013-03-01 10:59:21.456301' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.9ms) +Completed 200 OK in 205ms (Views: 201.9ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.5ms) +Completed 200 OK in 137ms (Views: 134.6ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$BKWlK7kz7.6cgHzNAsuXKujKGhSWFj0auS3y5HxhT.AJrnHMzZN/K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 10:59:21.880468', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:59:21.880468', "updated_at" = '2013-03-01 10:59:21.881083' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:59:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:59:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.2ms) +Completed 200 OK in 139ms (Views: 136.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.5ms) +Completed 200 OK in 136ms (Views: 133.4ms | ActiveRecord: 0.8ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$BiSORMjIKYrTQB3hDGOpeuuXm4UvVB/8U.3OleJOVH/E2EMOQp90a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 10:59:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 10:59:22.269802', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 10:59:22.269802', "updated_at" = '2013-03-01 10:59:22.270433' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 65ms (Views: 13.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 10:59:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 10:59:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 10:59:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.5ms) +Completed 200 OK in 139ms (Views: 136.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 11:59:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.5ms) +Completed 200 OK in 138ms (Views: 135.3ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$DkGtOChdBnoiPwfmi9t9neZw4KXZyhQPAgwXWeANrCc0v36tFRrdy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:00:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.2ms) +Completed 200 OK in 31ms (Views: 30.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:00:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:00:29.588120', "updated_at" = '2013-03-01 11:00:29.588811', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:00:29.588120', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:00:29 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.0ms) +Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:00:29 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.4ms) +Completed 200 OK in 207ms (Views: 203.4ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:00:29 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:00:29 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.5ms) +Completed 200 OK in 134ms (Views: 131.5ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$dcrHlTZezCkjVaXhWPx/jOWReeCtsXvOi75a.G0FbzV5CSmk.LoXu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:00:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:00:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:00:30.010272', "updated_at" = '2013-03-01 11:00:30.010844', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:00:30.010272', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.5ms) +Completed 200 OK in 139ms (Views: 136.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.1ms) +Completed 200 OK in 138ms (Views: 136.0ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$h9KxiEcipp0YNu21icplruUMUP8N7xmUnH4C1lww53B7hcL4TL4ui"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:00:30.399760', "updated_at" = '2013-03-01 11:00:30.400313', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:00:30.399760', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 63ms (Views: 13.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:00:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.7ms) +Completed 200 OK in 136ms (Views: 133.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:00:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.5ms) +Completed 200 OK in 140ms (Views: 138.3ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (2.9ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$dwC6E0SUX2nrlyRf8GySy.MkzAKFAbKL/8ugns.MZyyxdq/fwcedS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (73.4ms) +Completed 200 OK in 83ms (Views: 82.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:34.781311', "last_sign_in_at" = '2013-03-01 11:04:34.780557', "current_sign_in_at" = '2013-03-01 11:04:34.780557' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.0ms) +Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:04:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:34 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (205.1ms) +Completed 200 OK in 210ms (Views: 206.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 16ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.0ms) +Completed 200 OK in 136ms (Views: 133.9ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$GRi2iOnO5TsLf7Pe/ldZVOyVcjXnaQelvQ2LogeP1EjlPAyIDHZr2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:35.210580', "last_sign_in_at" = '2013-03-01 11:04:35.210053', "current_sign_in_at" = '2013-03-01 11:04:35.210053' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (68.8ms) +Completed 200 OK in 70ms (Views: 69.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.2ms) +Completed 200 OK in 140ms (Views: 137.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 15ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.7ms) +Completed 200 OK in 139ms (Views: 136.9ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$0QOdZaXqX9xn4PKE7zu2n.Q3efvF30OYKTo2jMi7pkgOIsQIWEC3."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.2ms) +Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:35.684358', "last_sign_in_at" = '2013-03-01 11:04:35.683781', "current_sign_in_at" = '2013-03-01 11:04:35.683781' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:04:35 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.1ms) +Completed 200 OK in 133ms (Views: 131.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 15ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.6ms) +Completed 200 OK in 194ms (Views: 191.3ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$j2nyhDS2418rmGS/4pAUquu5kTSDPE5LPHE1WiK/zq2gBKW7UtKW6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:36.081374', "last_sign_in_at" = '2013-03-01 11:04:36.080827', "current_sign_in_at" = '2013-03-01 11:04:36.080827' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (15.5ms) +Completed 200 OK in 19ms (Views: 16.4ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$9/kl1uK5uWAzrw0Q9/M4MeW3K.1l.vw67N/PkKtSf.yTu5nA5eI.u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:36.139299', "last_sign_in_at" = '2013-03-01 11:04:36.138082', "current_sign_in_at" = '2013-03-01 11:04:36.138082' WHERE "admin_users"."id" = 1 +  (1.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 60ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.7ms) +Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$vMP/pv3boKFcN4wuDFC2XOKaVTTooGXgg0kRZvCWT3Z0b41uZVvMy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:36.248571', "last_sign_in_at" = '2013-03-01 11:04:36.247958', "current_sign_in_at" = '2013-03-01 11:04:36.247958' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (11.5ms) +Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (66.0ms) +Completed 200 OK in 68ms (Views: 66.5ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (27.2ms) +Completed 200 OK in 32ms (Views: 27.9ms | ActiveRecord: 0.4ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$F17sZUOeII4nmc.JgIgu3expdvSetv3FYocLScpl.Ojd/Vdcwj1n2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (61.3ms) +Completed 200 OK in 63ms (Views: 62.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:36.469078', "last_sign_in_at" = '2013-03-01 11:04:36.468461', "current_sign_in_at" = '2013-03-01 11:04:36.468461' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.9ms) +Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (70.9ms) +Completed 200 OK in 73ms (Views: 71.3ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$i8uk/D34y9PyfOCMLTnsUOBLY8LohufeVuf9BZj5bD9P9TCJRmhHW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:36.608438', "last_sign_in_at" = '2013-03-01 11:04:36.607862', "current_sign_in_at" = '2013-03-01 11:04:36.607862' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.3ms) +Completed 200 OK in 21ms (Views: 18.8ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$Soi8ZAiKUaAMRYLX1riF2.ai8VT37Yvgh51dRpmDKI4YAK14Z3Pua"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (70.3ms) +Completed 200 OK in 72ms (Views: 71.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:36.732515', "last_sign_in_at" = '2013-03-01 11:04:36.731928', "current_sign_in_at" = '2013-03-01 11:04:36.731928' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.8ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (123.8ms) +Completed 200 OK in 126ms (Views: 124.1ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$lV.Na.JYvx11RMTOodLcH.1GfuK/ibK.lTMyVdnshvDs9eCK2RKki"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (65.4ms) +Completed 200 OK in 67ms (Views: 66.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:36.992340', "last_sign_in_at" = '2013-03-01 11:04:36.991610', "current_sign_in_at" = '2013-03-01 11:04:36.991610' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 11"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.0ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.2ms) +Completed 200 OK in 126ms (Views: 124.4ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$5VAQQczI0QAIQ4TsFNB71eJiXEYkcd.lbpIwyLy2jGHj6VEN92m2W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:37.190470', "last_sign_in_at" = '2013-03-01 11:04:37.190015', "current_sign_in_at" = '2013-03-01 11:04:37.190015' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 13"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (4.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category 14"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.9ms) +Completed 200 OK in 144ms (Views: 141.6ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$lPtouNx0FzVW/8xxoXMK.OTTCkZOHXoYKbMUhUEdYILamEXBmU.Bq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:37.446353', "last_sign_in_at" = '2013-03-01 11:04:37.445803', "current_sign_in_at" = '2013-03-01 11:04:37.445803' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 16"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category 17"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (145.7ms) +Completed 200 OK in 149ms (Views: 145.5ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$iSyWZayxjeXKcgYgVoUUfeTMe3ibJjE0AZQeWZ9b9537g6wSR1kni"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:37.704446', "last_sign_in_at" = '2013-03-01 11:04:37.703895', "current_sign_in_at" = '2013-03-01 11:04:37.703895' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 19"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category 20"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.3ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (206.6ms) +Completed 200 OK in 209ms (Views: 206.1ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$62DvaU2CxFhBQ1jOuE39wuv7n5dtweoXYmHOlBnJjZcxfqVLXLfzG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:37.961277', "last_sign_in_at" = '2013-03-01 11:04:37.960656', "current_sign_in_at" = '2013-03-01 11:04:37.960656' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 21"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:04:37 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (17.6ms) +Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$BPI134WBlHx1MckeVztYgOoROVaZx7E7fAehhAkD9eATEFEQq9vI."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (62.4ms) +Completed 200 OK in 64ms (Views: 63.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:38.080607', "last_sign_in_at" = '2013-03-01 11:04:38.079971', "current_sign_in_at" = '2013-03-01 11:04:38.079971' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.5ms) +Completed 200 OK in 17ms (Views: 15.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$rdtXchWoLGHBKyGz1laAZu6zPag/0IkKWvuFBLkpG73lG1gce26Zm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:38.143364', "last_sign_in_at" = '2013-03-01 11:04:38.142802', "current_sign_in_at" = '2013-03-01 11:04:38.142802' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 23"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] + Category Load (49.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (17.4ms) +Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:04:38.244654', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.4ms) +Completed 200 OK in 21ms (Views: 18.8ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$wDv2ooTM/i3tNZJ.sOL8ku2qKDML4VZvR8z.oZL/SlwkjSKHEPg9K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.0ms) +Completed 200 OK in 71ms (Views: 15.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.3ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:38.361413', "last_sign_in_at" = '2013-03-01 11:04:38.360792', "current_sign_in_at" = '2013-03-01 11:04:38.360792' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.7ms) +Completed 200 OK in 18ms (Views: 16.1ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:04:38.404264', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.9ms) +Completed 200 OK in 75ms (Views: 73.3ms | ActiveRecord: 0.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$rYYDSeRNrFurDgicFZQEzegrD29K2rnvdCgyC4abNJPp6pJu1qFoi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:04:38.515819', "last_sign_in_at" = '2013-03-01 11:04:38.515242', "current_sign_in_at" = '2013-03-01 11:04:38.515242' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:04:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.5ms) +Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:04:38.612873', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.7ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 61ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:04:38 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.1ms) +Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.8ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$Q8R0AYwRizDkTkopxKE1m.iN7WZfFRJ/VKrpbUtwc7ZqwRG1wmtvS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:05:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.9ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.6ms) +Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:05:22.016786', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:05:22.016059', "current_sign_in_at" = '2013-03-01 11:05:22.016059', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.0ms) +Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.8ms) +Completed 200 OK in 204ms (Views: 200.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.6ms) +Completed 200 OK in 135ms (Views: 132.6ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$dN3DOk3YkTeObh9KXHTW9.ILVp.S3btt/EjSLC8l6Pxt5igQev3zm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:05:22.437439', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:05:22.436857', "current_sign_in_at" = '2013-03-01 11:05:22.436857', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.2ms) +Completed 200 OK in 138ms (Views: 136.0ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.8ms) +Completed 200 OK in 137ms (Views: 134.6ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$Y8bXfAuJ3NjfZYlmd7pWXeTsPhWdS4llyQL7Hw/lI42M7ksPjTiLa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:05:22.826449', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:05:22.825873', "current_sign_in_at" = '2013-03-01 11:05:22.825873', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 64ms (Views: 13.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:05:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.4ms) +Completed 200 OK in 136ms (Views: 133.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:05:23 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.0ms) +Completed 200 OK in 137ms (Views: 134.9ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$SbfdUTkEx/wOPSz52/MMxuSEHnubjVcJGgZN3oK.KyNXASGH0U7Fq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.8ms) +Completed 200 OK in 33ms (Views: 32.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:05:37.271019', "last_sign_in_at" = '2013-03-01 11:05:37.270233', "current_sign_in_at" = '2013-03-01 11:05:37.270233', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.4ms) +Completed 200 OK in 207ms (Views: 203.5ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.4ms) +Completed 200 OK in 132ms (Views: 130.2ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$iKj8WZmaJt/MTsa8WZqvH.LvSmNbVrX113texzA0Ah6UDcPs6DFN6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.1ms) +Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:05:37.702889', "last_sign_in_at" = '2013-03-01 11:05:37.702322', "current_sign_in_at" = '2013-03-01 11:05:37.702322', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:05:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.0ms) +Completed 200 OK in 140ms (Views: 136.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.4ms) +Completed 200 OK in 130ms (Views: 128.2ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$zS2m6l2ZItIUhGzb/d8.FO330WoYave.3rGE3mQ0jds9i9l5leday"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:05:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:05:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:05:38.085910', "last_sign_in_at" = '2013-03-01 11:05:38.085368', "current_sign_in_at" = '2013-03-01 11:05:38.085368', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:05:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 69ms (Views: 14.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:05:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:05:38 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:05:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.9ms) +Completed 200 OK in 141ms (Views: 138.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:05:38 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:05:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.5ms) +Completed 200 OK in 133ms (Views: 131.3ms | ActiveRecord: 0.8ms) +  (0.3ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$a/IxeJSkvxJvPNjsH3H05u1OfB6iTxvSG/cT2n8dL0GQ1hrjS1CUi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.8ms) +Completed 200 OK in 33ms (Views: 32.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 11:06:05.214073', "updated_at" = '2013-03-01 11:06:05.215013', "current_sign_in_at" = '2013-03-01 11:06:05.214073', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.0ms) +Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.6ms) +Completed 200 OK in 207ms (Views: 204.3ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 13ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.4ms) +Completed 200 OK in 135ms (Views: 132.4ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$8hHF4zTsyZu/.xtGZN4yBeshVPjNRKVX4QRvThkBIqQx0/WUPYQtu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 11:06:05.644279', "updated_at" = '2013-03-01 11:06:05.644896', "current_sign_in_at" = '2013-03-01 11:06:05.644279', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:06:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.2ms) +Completed 200 OK in 133ms (Views: 130.3ms | ActiveRecord: 1.6ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.4ms) +Completed 200 OK in 132ms (Views: 130.1ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:06 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$BBG1uenB6vS5Peaio9BRHuHRCSsbfTNPmqr5YUCLekQc50pbc6HT6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:06:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 11:06:06.033799', "updated_at" = '2013-03-01 11:06:06.034419', "current_sign_in_at" = '2013-03-01 11:06:06.033799', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:06:06 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (1.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 69ms (Views: 7.0ms | ActiveRecord: 1.4ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:06 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:06:06 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:06 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:06:06 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:06 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.2ms) +Completed 200 OK in 133ms (Views: 131.0ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:06:06 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:06 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.6ms) +Completed 200 OK in 141ms (Views: 139.5ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.8ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$fddPyEHhU5QL2hYYUXteluCsyvEtRPxejqwrMTraHYidtR2M3Hssa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:06:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.9ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.6ms) +Completed 200 OK in 33ms (Views: 32.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:06:30.001591', "updated_at" = '2013-03-01 11:06:30.002464', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:06:30.001591', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.1ms) +Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.7ms) +Completed 200 OK in 204ms (Views: 200.4ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.0ms) +Completed 200 OK in 130ms (Views: 127.9ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.8ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$4qKQfF0W8LjKhxJOh9rjgO0epYsWOaj32JhymO1a3neyTe6mDSowW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:06:30.424332', "updated_at" = '2013-03-01 11:06:30.424874', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:06:30.424332', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (64.7ms) +Completed 200 OK in 66ms (Views: 65.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.0ms) +Completed 200 OK in 138ms (Views: 135.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.5ms) +Completed 200 OK in 134ms (Views: 131.3ms | ActiveRecord: 0.8ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$2rJP8cV32ROJ4EscwD/P8eEQpj/WI0DrTEVeSmNZyBHrCjWKMOWua"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:06:30.875469', "updated_at" = '2013-03-01 11:06:30.876061', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:06:30.875469', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.0ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:06:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.0ms) +Completed 200 OK in 134ms (Views: 131.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:06:31 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 14ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:06:31 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.4ms) +Completed 200 OK in 136ms (Views: 133.0ms | ActiveRecord: 1.1ms) +  (0.3ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$gEQKwN1pgIn5gQp2xyqzXurGU4B86gQauS.jgOv9bmxk4Zj.9tAvq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (23.9ms) +Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:07:19.400415', "last_sign_in_at" = '2013-03-01 11:07:19.400415', "updated_at" = '2013-03-01 11:07:19.401037' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.0ms) +Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (204.1ms) +Completed 200 OK in 208ms (Views: 205.1ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.1ms) +Completed 200 OK in 135ms (Views: 132.0ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$AzqRQJJStjbI21NxENBMAee/483zl.Eth/Iv8pUwTsb2Ao3SuUtzG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:07:19.824869', "last_sign_in_at" = '2013-03-01 11:07:19.824869', "updated_at" = '2013-03-01 11:07:19.825390' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.2ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:19 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:19 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.9ms) +Completed 200 OK in 136ms (Views: 133.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.9ms) +Completed 200 OK in 131ms (Views: 128.6ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$iFHobyTic.1u4qvaUBlyiuwcx8cU2fC5FROEwOE.QktBg0.clLph."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.1ms) +Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:07:20.211292', "last_sign_in_at" = '2013-03-01 11:07:20.211292', "updated_at" = '2013-03-01 11:07:20.211907' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (1.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 63ms (Views: 7.0ms | ActiveRecord: 1.0ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:20 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:20 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:20 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:20 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.6ms) +Completed 200 OK in 137ms (Views: 134.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.2ms) +Completed 200 OK in 132ms (Views: 130.1ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$1u/9YlvmyCmRn83kW.4ePuHNCTJP0kx8IPlqiJtcuALBpOdOWi/E."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.0ms) +Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.3ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:07:30.241762', "last_sign_in_at" = '2013-03-01 11:07:30.240954', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:07:30.240954', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 13ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.2ms) +Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (203.6ms) +Completed 200 OK in 208ms (Views: 204.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.6ms) +Completed 200 OK in 138ms (Views: 135.6ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$QEYEPXk65bZtH1l8MyWTi.TdrBUcbexY6udRlS97ELbK1Ej8/CDtm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:07:30.672993', "last_sign_in_at" = '2013-03-01 11:07:30.672352', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:07:30.672352', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.9ms) +Completed 200 OK in 142ms (Views: 138.8ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.7ms) +Completed 200 OK in 137ms (Views: 134.3ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:31 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$OekD2vch0tStRVD5r1QOz.lP.JRmMvxMHg96.ZLbkqhwxEL5947gi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:31 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:07:31.066226', "last_sign_in_at" = '2013-03-01 11:07:31.065608', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:07:31.065608', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:31 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (1.6ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 68ms (Views: 8.5ms | ActiveRecord: 1.6ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:31 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:31 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:31 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.5ms) +Completed 200 OK in 138ms (Views: 135.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:31 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:31 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.6ms) +Completed 200 OK in 140ms (Views: 138.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$QuzbTWKikvvJ2PjnhuK1R.ZMYuKTW7ap9wxcWHI4S3MeKwqcU9JSu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.0ms) +Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:07:44.916696', "current_sign_in_at" = '2013-03-01 11:07:44.915955', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:07:44.915955' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.7ms) +Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:44 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (201.2ms) +Completed 200 OK in 206ms (Views: 202.2ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (5.6ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.2ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 17ms (ActiveRecord: 6.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.0ms) +Completed 200 OK in 132ms (Views: 129.9ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$Zd7Atn4RItJ8jNXMiiQxZue.ELSUMTMKOY.Gkop1WmfNE9CcxO5YS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:07:45.341505', "current_sign_in_at" = '2013-03-01 11:07:45.340965', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:07:45.340965' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.5ms) +Completed 200 OK in 130ms (Views: 127.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.9ms) +Completed 200 OK in 137ms (Views: 134.7ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$sU.KyTopR1XgpC55FQhiPu3CCYbrReKEOzbBuRjhqF9fExYKapKDa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:07:45.789430', "current_sign_in_at" = '2013-03-01 11:07:45.788868', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:07:45.788868' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:07:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.3ms) +Completed 200 OK in 130ms (Views: 127.3ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:07:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.4ms) +Completed 200 OK in 139ms (Views: 136.9ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.6ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$U4suhY19m22YKboiTZ9d6.19jwRaBPE31aL0AhJhtwIeRTF0cayQi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.9ms) +Completed 200 OK in 33ms (Views: 31.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:08:56.389595', "last_sign_in_at" = '2013-03-01 11:08:56.388875', "current_sign_in_at" = '2013-03-01 11:08:56.388875', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.3ms) +Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (198.8ms) +Completed 200 OK in 203ms (Views: 200.0ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.8ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.7ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.2ms) +Completed 200 OK in 134ms (Views: 132.0ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$h.n2gPFthPrjPb9jWA5.kO3LlT3lrklqcfoIMTzQ6chvmNR4Ktqfu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:08:56.808533', "last_sign_in_at" = '2013-03-01 11:08:56.807983', "current_sign_in_at" = '2013-03-01 11:08:56.807983', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:08:56 UTC +00:00]] + Category Load (0.9ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:08:56 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.6ms) +Completed 200 OK in 139ms (Views: 136.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.4ms) +Completed 200 OK in 138ms (Views: 135.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$jYvxzYYR3RssEhVHELOhvOqIe1wcXsUIHF7cD6pTzhDXW/lQHui5a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:08:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:08:57.198038', "last_sign_in_at" = '2013-03-01 11:08:57.197422', "current_sign_in_at" = '2013-03-01 11:08:57.197422', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (6.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 65ms (Views: 6.7ms | ActiveRecord: 6.3ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:57 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:08:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:08:57 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:08:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.7ms) +Completed 200 OK in 137ms (Views: 134.3ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.7ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:08:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.6ms) +Completed 200 OK in 133ms (Views: 130.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$M0RHT6fMWyQDlwtINDdrgu1pdXdWDlg8Ct3xOHoUx8opwL5WcxCx."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.0ms) +Completed 200 OK in 32ms (Views: 31.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:09:14.476611', "last_sign_in_at" = '2013-03-01 11:09:14.476611', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:09:14.477411' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.7ms) +Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (198.6ms) +Completed 200 OK in 203ms (Views: 199.7ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.9ms) +Completed 200 OK in 141ms (Views: 138.7ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$pK68k0tUI1QWYWxiarklkOlAjZLojb7t7Ght9TYfNK6lPrfEnH/s."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:09:14.906882', "last_sign_in_at" = '2013-03-01 11:09:14.906882', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:09:14.907445' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (63.7ms) +Completed 200 OK in 65ms (Views: 64.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:09:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (142.4ms) +Completed 200 OK in 145ms (Views: 142.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.9ms) +Completed 200 OK in 142ms (Views: 139.6ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$5SBD.zg0NPqU00h/.r096Ovy1gSHBO2SS2A2Hqyyx3aROcpMoHWWK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:09:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:09:15.371774', "last_sign_in_at" = '2013-03-01 11:09:15.371774', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:09:15.372424' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:15 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:09:15 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:15 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:09:15 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.2ms) +Completed 200 OK in 134ms (Views: 132.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:15 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.5ms) +Completed 200 OK in 137ms (Views: 134.3ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$UNUaW5KAR4NvsQfnhyS2LufWOWXgF9ip6Y8lQBpvF4zDv5/YR/JR6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.8ms) +Completed 200 OK in 38ms (Views: 37.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:09:19.471810', "updated_at" = '2013-03-01 11:09:19.472594', "current_sign_in_at" = '2013-03-01 11:09:19.471810', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.1ms) +Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (201.0ms) +Completed 200 OK in 206ms (Views: 202.2ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.3ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.2ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.6ms) +Completed 200 OK in 137ms (Views: 134.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$GLWD3xBpWQNfOu/P7T/zRuCSII32HpE1H1NwW8.wVxm.prP7jVPAa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:09:19.899809', "updated_at" = '2013-03-01 11:09:19.900349', "current_sign_in_at" = '2013-03-01 11:09:19.899809', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (59.5ms) +Completed 200 OK in 61ms (Views: 59.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:09:19 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:19 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.2ms) +Completed 200 OK in 138ms (Views: 136.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.9ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.2ms) +Completed 200 OK in 137ms (Views: 134.3ms | ActiveRecord: 1.6ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$D6WbZMZaFEZ4jGBIvp4uuuUP.deHNsruwsIDFs5ZdGk8tpfzIfHXi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:09:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:09:20.343837', "updated_at" = '2013-03-01 11:09:20.344415', "current_sign_in_at" = '2013-03-01 11:09:20.343837', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:20 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:09:20 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:09:20 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:09:20 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.3ms) +Completed 200 OK in 137ms (Views: 135.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:09:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.7ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.1ms) +Completed 200 OK in 141ms (Views: 138.3ms | ActiveRecord: 1.4ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$g9pATSo0bF0jadskt1owaey9aXRCtCpIBFf0mczNg7xPPDbXu6yei"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:16:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:16:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.3ms) +Completed 200 OK in 33ms (Views: 32.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:16:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:16:37.678176', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:16:37.678176', "updated_at" = '2013-03-01 11:16:37.678827' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:16:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.2ms) +Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.0ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:16:37 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:16:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:16:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.6ms) +Completed 200 OK in 207ms (Views: 203.6ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:16:37 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:16:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.5ms) +Completed 200 OK in 131ms (Views: 128.4ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$IlZtyjyypSYo/ZpeF3FqouJYZ6UgZr3.CJvDDSpJFqya3QHtynHLS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:16:38.103969', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:16:38.103969', "updated_at" = '2013-03-01 11:16:38.104526' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.7ms) +Completed 200 OK in 132ms (Views: 129.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.3ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.8ms) +Completed 200 OK in 140ms (Views: 137.6ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.5ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$UspPVq5KB5aq5auPkZCMneQlTSipU7X/RF0IZj4VTx9GsGUlcfQ8u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:16:38.495154', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:16:38.495154', "updated_at" = '2013-03-01 11:16:38.495768' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (6.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 70ms (Views: 6.8ms | ActiveRecord: 6.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.8ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:16:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.6ms) +Completed 200 OK in 134ms (Views: 131.5ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:16:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.4ms) +Completed 200 OK in 138ms (Views: 136.2ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$UGB.deAqG41B1oVQwP8v5ebaT7plBIcpVjUUOiiA/unnEUcQHdB3u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:17:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:17:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.0ms) +Completed 200 OK in 32ms (Views: 31.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:17:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:17:13.631394', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:17:13.631394', "sign_in_count" = 1, "updated_at" = '2013-03-01 11:17:13.632181' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:17:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.2ms) +Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:17:13 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:17:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:17:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (203.5ms) +Completed 200 OK in 208ms (Views: 204.5ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:17:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:17:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.5ms) +Completed 200 OK in 133ms (Views: 130.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$xXH0UOR9voF88r9tAbLdwusaynGag8/5OjaC.gKeaHLpmwGNjntba"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:17:14.056708', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:17:14.056708', "sign_in_count" = 1, "updated_at" = '2013-03-01 11:17:14.057345' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (1.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.7ms) +Completed 200 OK in 63ms (Views: 61.1ms | ActiveRecord: 1.0ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.9ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.1ms) +Completed 200 OK in 137ms (Views: 134.2ms | ActiveRecord: 1.5ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.3ms) +Completed 200 OK in 132ms (Views: 130.1ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$WQw1NSd.r9X8AUl6kAZ20.fYagxSfECrrtlOp3avLR4i1W1lLOS4i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:17:14.501823', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:17:14.501823', "sign_in_count" = 1, "updated_at" = '2013-03-01 11:17:14.502465' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:17:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.5ms) +Completed 200 OK in 135ms (Views: 132.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:17:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.0ms) +Completed 200 OK in 133ms (Views: 130.5ms | ActiveRecord: 1.2ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$JR0rcfoUYuTcqRn0L5upRuhNrxzVHHfKZXYCUlFkzGgPDbP19LIWC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.7ms) +Completed 200 OK in 32ms (Views: 31.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:19:01.776192', "current_sign_in_at" = '2013-03-01 11:19:01.775439', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:19:01.775439', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.0ms) +Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:01 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:01 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.6ms) +Completed 200 OK in 205ms (Views: 201.3ms | ActiveRecord: 1.3ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.4ms) +Completed 200 OK in 137ms (Views: 135.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$yo02TY8KOeNiwInGYABCtemouiXGu5yhMZtFy9ZB7DcVnqSnkYsiO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:19:02.203603', "current_sign_in_at" = '2013-03-01 11:19:02.203333', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:19:02.203333', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (66.7ms) +Completed 200 OK in 68ms (Views: 67.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.7ms) +Completed 200 OK in 135ms (Views: 132.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.1ms) +Completed 200 OK in 139ms (Views: 136.6ms | ActiveRecord: 1.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$XBsCNYihcANFmesFrbn7ku84CjXKaFFZguuLUvjehNZXS6JJ5Roei"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:19:02.658178', "current_sign_in_at" = '2013-03-01 11:19:02.653102', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:19:02.653102', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "First parent"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Second parent"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.0ms) +Completed 200 OK in 132ms (Views: 129.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (186.5ms) +Completed 200 OK in 189ms (Views: 186.4ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$w3/3xtC2qECQDamMSKw.je838AlsenVNJvZ/p96tbMEudC3akkzwq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.1ms) +Completed 200 OK in 32ms (Views: 31.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:22.547409', "sign_in_count" = 1, "updated_at" = '2013-03-01 11:19:22.548204', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:19:22.547409' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.5ms) +Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.4ms) +Completed 200 OK in 204ms (Views: 200.3ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.1ms) +Completed 200 OK in 133ms (Views: 130.9ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$Jq1xMLAAnRxYrEjyRYHKNedm0WYAiIAhX2qj1BQ8.L8QtFd4HcPtW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.6ms) +Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:22.967872', "sign_in_count" = 1, "updated_at" = '2013-03-01 11:19:22.968424', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:19:22.967872' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (59.8ms) +Completed 200 OK in 61ms (Views: 60.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.9ms) +Completed 200 OK in 137ms (Views: 133.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.6ms) +Completed 200 OK in 139ms (Views: 136.5ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$VWEPiqYef2xki1cLqv3s5.HVCPwh0Ij2y2EwwcYF0CU/rtFp6r80."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:23.411347', "sign_in_count" = 1, "updated_at" = '2013-03-01 11:19:23.411930', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:19:23.411347' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.7ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category 5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category 6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.1ms) +Completed 200 OK in 138ms (Views: 135.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.4ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.8ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.6ms) +Completed 200 OK in 194ms (Views: 190.9ms | ActiveRecord: 1.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:53 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$tPuMmSFodIFkmexLvnj1ierS7NNgPWApcQ9k4y2wPEZ9gGedaWly2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:53 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (77.3ms) +Completed 200 OK in 85ms (Views: 84.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:53 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:53.647140', "updated_at" = '2013-03-01 11:19:53.647841', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:53.647140' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:53 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.2ms) +Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:53 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:53 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:53 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category ####2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:53 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:53 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.7ms) +Completed 200 OK in 207ms (Views: 203.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:53 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:53 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.6ms) +Completed 200 OK in 137ms (Views: 134.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$M1jnYFxWqA4dfyau.ZDkQOpg5MLgGtW8BNyF666zOph0UJ1p4xK1m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:54.075773', "updated_at" = '2013-03-01 11:19:54.076339', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:54.075773' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (65.6ms) +Completed 200 OK in 67ms (Views: 66.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category ####4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.6ms) +Completed 200 OK in 139ms (Views: 136.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.5ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.4ms) +Completed 200 OK in 138ms (Views: 135.8ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$9566ZTSlcK/hFOYsLtH.S.VddNvm8n8./paz4jm9TmjLsxU6CtXva"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:54.528887', "updated_at" = '2013-03-01 11:19:54.529489', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:54.528887' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category ####6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.2ms) +Completed 200 OK in 137ms (Views: 135.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (189.8ms) +Completed 200 OK in 192ms (Views: 189.7ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$Nikiyhjj/cw1JFp3Zy9AHuvc.tUegQZ7SVDZ.e736GgwugVH6W7XO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:54.921407', "updated_at" = '2013-03-01 11:19:54.921972', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:54.921407' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.7ms) +Completed 200 OK in 18ms (Views: 15.5ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$dlAThTOl2xut3VTSeR8/PeXigbOJ2hf2ft0jeg1qCmKJ9s8N11jhe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:54.983209', "updated_at" = '2013-03-01 11:19:54.984024', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:54.983209' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (56.8ms) +Completed 200 OK in 58ms (Views: 57.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.1ms) +Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$BLz9g6l44LIt0OB0KuCuEuJaiRM0BV.cU20Pbq5B1DQHAZXhJYlli"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:55.087257', "updated_at" = '2013-03-01 11:19:55.087863', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:55.087257' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.1ms) +Completed 200 OK in 17ms (Views: 14.6ms | ActiveRecord: 0.3ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (4.9ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 16ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (25.8ms) +Completed 200 OK in 30ms (Views: 26.5ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$w2iaMPjt2VgMh14jafy6ceeCdHvtPTbHpRrsrnppQ9Z9Zm5ptRDd."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:55.298782', "updated_at" = '2013-03-01 11:19:55.299374', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:55.298782' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.9ms) +Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.7ms) +Completed 200 OK in 76ms (Views: 74.0ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$DurAoFPsmw7lDap4MSmNUOV0X34KUwWAvcyIkDY4tZK3yhoXtXaLm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:55.439851', "updated_at" = '2013-03-01 11:19:55.440417', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:55.439851' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.8ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.4ms) +Completed 200 OK in 20ms (Views: 17.1ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$sdNdvnK9Ajxye1OvTwk3SeCyirbm9X4shRFPDR79Luk5kYaZDlOQW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:55.500168', "updated_at" = '2013-03-01 11:19:55.500730', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:55.500168' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.9ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (61.5ms) +Completed 200 OK in 64ms (Views: 62.0ms | ActiveRecord: 0.9ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (21.0ms) +Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$xCgdoIplrH3PMh79asz71.hNDWoDenCyiX5eT68CTMPwjHLMX/z8m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:55.618584', "updated_at" = '2013-03-01 11:19:55.619140', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:55.618584' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (69.2ms) +Completed 200 OK in 72ms (Views: 70.2ms | ActiveRecord: 0.6ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:19:55.715998', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.6ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$QhPVz5j/tgInqnBdwbQNYuIIAi7qeklKo6aiziKa7Hk2HeOzG5NJS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:55.766550', "updated_at" = '2013-03-01 11:19:55.767103', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:55.766550' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.3ms) +Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.7ms) +Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:19:55.867756', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (70.1ms) +Completed 200 OK in 72ms (Views: 70.6ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$qi2P2slgLGRhi0Rlkma51eN5VvkeMHhqDUjtECliPnSeXdq47caM."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:55.968739', "updated_at" = '2013-03-01 11:19:55.969336', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:55.968739' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####11"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:19:55 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (20.0ms) +Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:19:56.017301', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.2ms) +Completed 200 OK in 75ms (Views: 73.5ms | ActiveRecord: 0.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$mTUP411C3EtYYOiFk3ILWuAVfzHhWnp/E9qmSM8chH1N6nEbs7czi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:56.125158', "updated_at" = '2013-03-01 11:19:56.125755', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:56.125158' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (78.6ms) +Completed 200 OK in 81ms (Views: 79.0ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (119.0ms) +Completed 200 OK in 122ms (Views: 119.4ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$1Imm9XJ3v8KFjgCNXzbpv.RO8jUkdIjwEMvwtYwOkraSUtJZEfZ7q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:56.385044', "updated_at" = '2013-03-01 11:19:56.385580', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:56.385044' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.9ms) +Completed 200 OK in 76ms (Views: 74.3ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (123.9ms) +Completed 200 OK in 126ms (Views: 124.3ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$ZYVmD6KtuTjbbQdfq.JI.OSr1vjstx4mVipbn/Q/t6XQRZXRQ0/oq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:56.643881', "updated_at" = '2013-03-01 11:19:56.644419', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:56.643881' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####14"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (71.6ms) +Completed 200 OK in 74ms (Views: 72.0ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$iJNQO/VM1QLG6g6FKYPVYO/mUTuYQZGYQD/pdnl8HGxZfWwNWdRpq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.8ms) +Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:56.760233', "updated_at" = '2013-03-01 11:19:56.760818', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:56.760233' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category ####16"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category ####17"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.2ms) +Completed 200 OK in 144ms (Views: 140.8ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$ojakL.B2NvF9dPiR5WnUmuqbjqTP9icnLuYhueKnpUIA8Kb5v2HVS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:56 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:56 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:57.014010', "updated_at" = '2013-03-01 11:19:57.014493', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:57.014010' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:57 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category ####19"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category ####20"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.6ms) +Completed 200 OK in 139ms (Views: 136.3ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$UHs3eXnhwdGQctMZ7TAi1eUMBceO4J5fNuz//XCsceV9Kbj2paoLO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:19:57 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:19:57.200005', "updated_at" = '2013-03-01 11:19:57.200538', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:19:57.200005' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:19:57 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (67.7ms) +Completed 200 OK in 69ms (Views: 68.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####21"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category ####22"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category ####23"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:19:57 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.7ms) +Completed 200 OK in 142ms (Views: 138.3ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category ####25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:19:57 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$yq0jYR6iTXbTzyTQ1mi3mO3WBDHtNn1H6sN9Mr2SjVi2Zn8801HwW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (70.7ms) +Completed 200 OK in 79ms (Views: 78.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:10.424334', "last_sign_in_at" = '2013-03-01 11:20:10.423634', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:10.423634' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 13ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (72.2ms) +Completed 200 OK in 86ms (Views: 73.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$L6Me.lGKuPV4vxgg3g1H9efNkq64UanGFoXNxZ16XgGkJH73OaV.u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:10.561424', "last_sign_in_at" = '2013-03-01 11:20:10.560783', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:10.560783' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.7ms) +Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$0o3fi0h90kygggvSn4M8GOog0qIm/USRqKQOeGLINvVoH/QcfHYyG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.8ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:10.616032', "last_sign_in_at" = '2013-03-01 11:20:10.615463', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:10.615463' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (63.5ms) +Completed 200 OK in 65ms (Views: 64.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.5ms) +Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (77.6ms) +Completed 200 OK in 81ms (Views: 78.3ms | ActiveRecord: 0.4ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$idFqSmWhxGfSOHElYU9pe..Sc4KR/aIRWH/Mbhvpsnrw4bDdfpSIO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:10.828082', "last_sign_in_at" = '2013-03-01 11:20:10.827543', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:10.827543' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (18.9ms) +Completed 200 OK in 21ms (Views: 19.3ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.2ms) +Completed 200 OK in 75ms (Views: 73.6ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$grSvE9m5/rLRvv/G8Nkv4OpeF4coD49DfMUvEHrCeBQv.TgiNt1x2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:10.973253', "last_sign_in_at" = '2013-03-01 11:20:10.972719', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:10.972719' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (76.9ms) +Completed 200 OK in 79ms (Views: 77.3ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$LtAOoP7T3IsixRSUgr/oX.tkyMR39.osaDeqGJBQ1a4Z1lFDArwrm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:11.094353', "last_sign_in_at" = '2013-03-01 11:20:11.093787', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:11.093787' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.1ms) +Completed 200 OK in 20ms (Views: 16.9ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (6.7ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$LzUDvlv9ajGAlAQwg6M42e9Ul7iuSgl3y.UYjuaQLU6dXEnqMlSDq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:11.211947', "last_sign_in_at" = '2013-03-01 11:20:11.211383', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:11.211383' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.6ms) +Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.3ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$XFL3.jFbJM0KcAlcMVJLh.sCM3.cLQe.pAO03OS23x8TqzZOiBsj6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:11.273100', "last_sign_in_at" = '2013-03-01 11:20:11.272729', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:11.272729' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (62.3ms) +Completed 200 OK in 64ms (Views: 62.8ms | ActiveRecord: 0.2ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.6ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:20:11.373858', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (70.4ms) +Completed 200 OK in 73ms (Views: 70.7ms | ActiveRecord: 0.3ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$0d5rsrIK5wCWN7sDS0n2Q.bUirx.TMxKGPGufSlgNiCOdZ7cK4uXG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.9ms) +Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:11.486399', "last_sign_in_at" = '2013-03-01 11:20:11.485716', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:11.485716' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.6ms) +Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:20:11.529305', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.3ms) +Completed 200 OK in 75ms (Views: 73.6ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$lQLOLL1oveEOo5Siu7T60uuaR7I3lhg2uXxQHFRAnFOgW068AtUDq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:11.634434', "last_sign_in_at" = '2013-03-01 11:20:11.633995', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:11.633995' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (20.4ms) +Completed 200 OK in 22ms (Views: 20.5ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:20:11.734619', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.1ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$Yz.zCWuUM.GzslUK3/Dctexf6camENSksWUEZDXuFEZ/dxN4OvfCa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:11.784280', "last_sign_in_at" = '2013-03-01 11:20:11.783756', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:11.783756' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (24.5ms) +Completed 200 OK in 80ms (Views: 24.9ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.6ms) +Completed 200 OK in 130ms (Views: 127.3ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$/f7mNmY20tc9SF1u5UttaOtwUXUesQ0VcB/01t2DZx/SvZiGaNmZq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:12.052553', "last_sign_in_at" = '2013-03-01 11:20:12.051950', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:12.051950' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (20.3ms) +Completed 200 OK in 83ms (Views: 20.7ms | ActiveRecord: 0.4ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.6ms) +Completed 200 OK in 127ms (Views: 124.9ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$oOBvzaro2NwozPz7LJ7AVe1PRc65YlanJt26hchHDRfC1f6ky4.P."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:12.316279', "last_sign_in_at" = '2013-03-01 11:20:12.315722', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:12.315722' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "11"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.3ms) +Completed 200 OK in 205ms (Views: 202.0ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$3Ll/qlVcCeA9JndaMhLq9O1F44BNgGQrqcZbCczfg3KWf132XFDa2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:12.567895', "last_sign_in_at" = '2013-03-01 11:20:12.567136', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:12.567136' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (1.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.0ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "13"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "14"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.3ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.2ms) +Completed 200 OK in 202ms (Views: 198.6ms | ActiveRecord: 1.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$sHe7wu8dTJyxw4z4K5lU1OQuYgGOpRbvQ3HySpFHDdxBviU3MlJKO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:12.817449', "last_sign_in_at" = '2013-03-01 11:20:12.816876', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:12.816876' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "16"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "17"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.1ms) +Completed 200 OK in 141ms (Views: 138.6ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$ao4E1xq/m67RDxuZtCv6z.luBI12RUcRXwS/wXUbnls8/rOT5/dHW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.6ms) +Completed 200 OK in 69ms (Views: 68.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:13.067920', "last_sign_in_at" = '2013-03-01 11:20:13.067312', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:13.067312' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "19"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.9ms) +Completed 200 OK in 133ms (Views: 130.9ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.8ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.6ms) +Completed 200 OK in 203ms (Views: 200.4ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$XGuoCRNpmn4Yyufba8k3IuhSktbtur6DUwpQL2uLDil/7ocSdLmr."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:13.469953', "last_sign_in_at" = '2013-03-01 11:20:13.469402', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:13.469402' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.1ms) +Completed 200 OK in 140ms (Views: 137.0ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.7ms) +Completed 200 OK in 138ms (Views: 135.6ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$gFZsyTrCJL/vktkcSI4yqeaY1enDLFR5vi6gkgeRL/gVyKQ00/IYu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:20:13.868983', "last_sign_in_at" = '2013-03-01 11:20:13.868435', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 11:20:13.868435' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (196.0ms) +Completed 200 OK in 199ms (Views: 195.9ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:20:14 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 16ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:14 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.7ms) +Completed 200 OK in 135ms (Views: 132.6ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.5ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:14 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:14 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:14 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:29 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$gZbZR2Rksmgkv04TYa936OlqzSArgYielciVvulmZOJlar65QRz1W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:29 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (77.4ms) +Completed 200 OK in 85ms (Views: 84.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:29 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:29.785902', "updated_at" = '2013-03-01 11:20:29.786645', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:29.785902', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:29 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:29 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo1bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:29 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:29 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "foo2bar"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:29 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:29 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (204.1ms) +Completed 200 OK in 209ms (Views: 205.7ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.0ms) +Completed 200 OK in 138ms (Views: 135.8ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$M/dF/YuKup9xdwotjFuOtugkt1nn76VjH9OGEPY5TrhFZlK.D83ru"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:30.216929', "updated_at" = '2013-03-01 11:20:30.217506', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:30.216929', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (62.2ms) +Completed 200 OK in 64ms (Views: 62.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo3bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "foo4bar"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.4ms) +Completed 200 OK in 137ms (Views: 134.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.3ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.4ms) +Completed 200 OK in 138ms (Views: 136.2ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$hs0Tcu1trTmLOT2LUUoK8u7l7dV4tYVHEsXVSQK2RprOdUcCElMri"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (66.6ms) +Completed 200 OK in 68ms (Views: 67.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:30.666563', "updated_at" = '2013-03-01 11:20:30.667154', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:30.666563', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo5bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "foo6bar"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:30 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.8ms) +Completed 200 OK in 134ms (Views: 131.6ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:30 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.3ms) +Completed 200 OK in 194ms (Views: 191.0ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$iXg6uJ/dSdqCwXGPCUxIc.teV2H81.enAXv/hTNM.c.nASGjIuXbu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:31.054557', "updated_at" = '2013-03-01 11:20:31.055123', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:31.054557', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo7bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (84.0ms) +Completed 200 OK in 88ms (Views: 84.9ms | ActiveRecord: 0.5ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$MpqJXNbOE.kkM8BoknQYDOFEOiRfkknQkpdoCL5Z3Z/DZUudvkaPO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:31.185011', "updated_at" = '2013-03-01 11:20:31.185563', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:31.185011', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo8bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "foo9bar"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "foo10bar"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.8ms) +Completed 200 OK in 137ms (Views: 134.4ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$OHuQFQWOcJwPvE0GUQDFHeld9A/C4tc0FfLZTDObyW0fQdEXDSEjq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (71.8ms) +Completed 200 OK in 74ms (Views: 73.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:31.434530', "updated_at" = '2013-03-01 11:20:31.435144', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:31.434530', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo11bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "foo12bar"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "foo13bar"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.8ms) +Completed 200 OK in 137ms (Views: 135.5ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$YT9d7xhpBCmg.rdT2sOx8OAqwIioQSJscgky3p.ogDzoRyhhRZQ3i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:31.619123', "updated_at" = '2013-03-01 11:20:31.619957', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:31.619123', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (62.4ms) +Completed 200 OK in 64ms (Views: 62.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo14bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "foo15bar"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "foo16bar"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.5ms) +Completed 200 OK in 141ms (Views: 138.1ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$91BnNJlKD6RcV2hwnXDN0eEkYzlGwkCSpWjtD5f/1POTHVpN8S6HK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:31.863031', "updated_at" = '2013-03-01 11:20:31.863572', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:31.863031', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (72.8ms) +Completed 200 OK in 76ms (Views: 73.6ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$WYDuoHQc1Ii7In3bCWblBeteU9z7jXKAw2f5uSLlfWoGGcJRfWZj."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:31 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.2ms) +Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:31.981875', "updated_at" = '2013-03-01 11:20:31.982494', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:31.981875', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:31 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.9ms) +Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$HSqd8uGaH6MgpIQCY56r9eYlWjBa5uy6ojRbE7WxwryQ0jXFg0H76"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:32.090270', "updated_at" = '2013-03-01 11:20:32.090860', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:32.090270', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.5ms) +Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (77.0ms) +Completed 200 OK in 80ms (Views: 77.7ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$oG7tpjFEdoIt5zWTe.kLneae2ZFp4kjojQl8XpfLGkPIMcuPNu0b6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:32.239787', "updated_at" = '2013-03-01 11:20:32.240339', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:32.239787', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.2ms) +Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.9ms) +Completed 200 OK in 74ms (Views: 73.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$.Y1fmQ2dMkpi3Jd.fRVT1uXP9DVtbocmKhuT0zvXQz287C.u1b9Nm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.3ms) +Completed 200 OK in 15ms (Views: 14.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:32.385603', "updated_at" = '2013-03-01 11:20:32.386242', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:32.385603', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo17bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.2ms) +Completed 200 OK in 74ms (Views: 72.5ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.5ms) +Completed 200 OK in 132ms (Views: 129.9ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$TJAeShHEIpSbpGOT5H7VneYcDIsLDCQGAZVP1pW1aFgRU0TzKW5Am"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:32.650894', "updated_at" = '2013-03-01 11:20:32.651669', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:32.650894', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo18bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.9ms) +Completed 200 OK in 75ms (Views: 73.3ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.7ms) +Completed 200 OK in 126ms (Views: 124.7ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$xIAIdwRm3dbNZuiDkaFjKuvAyEcKaw6YXXZPvIwy.JnBIgEx3wJvu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:32.904885', "updated_at" = '2013-03-01 11:20:32.905422', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:32.904885', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo19bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (17.3ms) +Completed 200 OK in 21ms (Views: 17.7ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$Sh.0nIZogg5XQ6Dm.ze4G.cRqN5D4pE0CEhy17/JT/Z.jN48H6xl2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:32 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:32 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:33.024685', "updated_at" = '2013-03-01 11:20:33.025255', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:33.024685', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo20bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.7ms) +Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$zNAX9Uq5mwoSN/A4uLl/Yud35gDjkzQ9eOoUN8yy7YqEFXmmg1ne6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:33.081881', "updated_at" = '2013-03-01 11:20:33.082433', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:33.081881', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo21bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (71.4ms) +Completed 200 OK in 73ms (Views: 71.7ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:20:33.186248', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 16ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.3ms) +Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$J9CipG8zUPyqCSQcDA/VB.UNSjY59dsuwiYS5BIQDitdUU67mFMDe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (55.8ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (62.1ms) +Completed 200 OK in 64ms (Views: 63.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:33.293976', "updated_at" = '2013-03-01 11:20:33.294458', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:33.293976', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo22bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.7ms) +Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:20:33.335844', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (75.7ms) +Completed 200 OK in 78ms (Views: 76.0ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$v9nJpr8INsj1UNyk6aycTOlo9sHw3PSnz556d6hre5DmwSNyR2x36"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 11:20:33.442240', "updated_at" = '2013-03-01 11:20:33.442802', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 11:20:33.442240', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.9ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.9ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo23bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.7ms) +Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:20:33.484328', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:20:33 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (5.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.4ms) +Completed 200 OK in 75ms (Views: 19.8ms | ActiveRecord: 5.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.4ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo24bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "foo25bar"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:20:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:07 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$Iuo1/LMYqdaCfMejB8UOCeXU.fhj3ROiXl/r3tX7znLCSj1rdlF2."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:07 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.9ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (70.3ms) +Completed 200 OK in 78ms (Views: 77.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.128516', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.128516', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.129227' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.3ms) +Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (72.7ms) +Completed 200 OK in 81ms (Views: 74.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$QeqC21cA2Rcd7v1dj.Se8.Vm2Te.K8ygoEWr6.GaW4Xpa9Ko1GJeK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.261641', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.261641', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.262187' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.9ms) +Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$/Uqvm96NpLUKmeOkhCNxhOBHV240vvcZs5a7SOJInaYXQli31rI9G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.321092', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.321092', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.321817' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (58.2ms) +Completed 200 OK in 60ms (Views: 58.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.2ms) +Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (78.1ms) +Completed 200 OK in 82ms (Views: 78.9ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$qtNKo4oyB3t6zZ0PivPZz.pF.fRJOzHNmoCiCuA50qGaCzS6BgUdq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.0ms) +Completed 200 OK in 15ms (Views: 14.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.533584', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.533584', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.534250' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.8ms) +Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.7ms) +Completed 200 OK in 73ms (Views: 71.7ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$dtCsOQlhgDYX6bQI5CP.2.k3kWNvaQt7X/DR7FVKy5ccW9xBSHGxe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.6ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.670608', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.670608', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.671209' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (77.4ms) +Completed 200 OK in 80ms (Views: 77.7ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$2sfZ4rncg9l2SpD5GbdmK.Nk2MOYXF6qFieZgEktgzyylTx2RQlXm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.792906', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.792906', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.793605' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.6ms) +Completed 200 OK in 20ms (Views: 16.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (5.5ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$Vq4l6pGl09xIyAHsXBSNuOpU.GNOo3BD6VSmry6mc2hCMU4Vb3oLu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.9ms) +Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.910543', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.910543', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.911117' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (10.8ms) +Completed 200 OK in 12ms (Views: 11.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.8ms) +Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$GD44qvbU4rww0uu43wzTwevVHm2SUYN0q5gZfhlPB5zoMsNs1vl5W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.7ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:08.970235', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:08.970235', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:08.970796' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:08 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (58.4ms) +Completed 200 OK in 60ms (Views: 58.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.6ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:21:09.066693', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (77.8ms) +Completed 200 OK in 80ms (Views: 78.1ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$tO1IhpVEzAF3ffaQgu83B.5aELuCwnX3tWjRa9/LkmF1HOTTQzSx6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.0ms) +Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:09.179360', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:09.179360', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:09.179917' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.0ms) +Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:21:09.221901', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (71.0ms) +Completed 200 OK in 73ms (Views: 71.3ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$w7TqID6JVq/uMLzXm7atWOys5tsHXxKHdSO.e9u94K/lwCKl6qRaa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:09.323908', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:09.323908', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:09.324448' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.6ms) +Completed 200 OK in 17ms (Views: 14.8ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 11:21:09.423616', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.7ms) +Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$osxuiyC6YtnSRlvqRaPW5u.JhKwcLkE0I9Cf.smH4XR64Qzzw2XAa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:09.472317', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:09.472317', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:09.472857' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.2ms) +Completed 200 OK in 79ms (Views: 19.6ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.6ms) +Completed 200 OK in 129ms (Views: 125.3ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$obBzOAodENY5Jo4vFDb4/upq5C59W6KuofZPZjI.Rv27LzUe09ojy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:09.742478', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:09.742478', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:09.742972' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.3ms) +Completed 200 OK in 78ms (Views: 19.7ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (121.1ms) +Completed 200 OK in 123ms (Views: 121.5ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$VOLJwvJlFip2C4xlW//ZDuJpeoQfkhHdoxxKuVZtC8DqFwLLlU6fK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:09.996733', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:09.996733', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:09.997270' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #11"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.7ms) +Completed 200 OK in 202ms (Views: 199.4ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$Q7aArUU.WSEiOyATTr0Y2.AAN0bImRdDCixF.9yIcSnHGBbqjN7sC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:10.243558', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:10.243558', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:10.244111' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.7ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #13"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #14"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (196.6ms) +Completed 200 OK in 199ms (Views: 196.2ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$bjD4zjsnySJpto8skzPx5uBRQLR.OA5VTXuMzwi/2dq7R/DvMcIWC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:10.489839', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:10.489839', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:10.490463' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.4ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #16"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #17"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (140.6ms) +Completed 200 OK in 143ms (Views: 140.1ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$a3G3OEHZFq70HOD6DCma4.HgZ8geOYM2j6XzrJ.qXR73IBzcarq/C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.5ms) +Completed 200 OK in 69ms (Views: 68.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:10.742064', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:10.742064', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:10.742526' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #19"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.4ms) +Completed 200 OK in 133ms (Views: 130.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (196.0ms) +Completed 200 OK in 198ms (Views: 195.4ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$flcDt9Lrfdct2puUf9TY2.dUy0wa3dEH5DxK7YwV0.Wef4NZ2jpKO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:11.137830', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:11.137830', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:11.138466' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.9ms) +Completed 200 OK in 132ms (Views: 129.6ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.6ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 71ms (ActiveRecord: 1.4ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.4ms) +Completed 200 OK in 135ms (Views: 132.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$QVorHO10xRdDwkLqJ0Cob.IavynpvhoiO4FXlo/guTGa4lO/297S6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.9ms) UPDATE "admin_users" SET "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:11.531752', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 11:21:11.531752', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 11:21:11.532295' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.6ms) +Completed 200 OK in 194ms (Views: 191.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (1.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 16ms (ActiveRecord: 1.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.1ms) +Completed 200 OK in 132ms (Views: 130.0ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$7fFPRKRnaMI5mxGL3svFZu1kfPzfSH3flv0yNpjK5j2xafSBRa0EG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.2ms) +Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:21:49.443902', "last_sign_in_at" = '2013-03-01 11:21:49.443184', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:49.443184', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (5.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.6ms) +Completed 200 OK in 204ms (Views: 200.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.2ms) +Completed 200 OK in 132ms (Views: 130.0ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$5zLLlgQRN.zHU1lRv4NISOWQxUugHKQQ4ER/pMq2w2VqNmred22y6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:21:49.867147', "last_sign_in_at" = '2013-03-01 11:21:49.866609', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:49.866609', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.1ms) +Completed 200 OK in 136ms (Views: 134.0ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 15ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.6ms) +Completed 200 OK in 133ms (Views: 130.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:50 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$/FIeIKwVJnImTze3pS0IwuxyqXujfbETUCrz0uM8M/sC/8gxyzOOq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 11:21:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 11:21:50.322354', "last_sign_in_at" = '2013-03-01 11:21:50.321763', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 11:21:50.321763', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:50 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 11:21:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 11:21:50 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 11:21:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.0ms) +Completed 200 OK in 128ms (Views: 125.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 12:21:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (226.8ms) +Completed 200 OK in 229ms (Views: 226.6ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$LspUaAuoi0ag3XwkyKAKG.BNayySw0d8VMvLv9wTlm40gEOINTnmS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:26:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:26:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.5ms) +Completed 200 OK in 32ms (Views: 30.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:26:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:26:12.937419', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:26:12.938106', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:26:12.937419' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:26:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:26:12 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:26:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.9ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:26:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.4ms) +Completed 200 OK in 205ms (Views: 201.6ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.0ms) +Completed 200 OK in 137ms (Views: 133.7ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$ORmk1GIT0axsYm8SV2cM.eCze0LEvT8MByHkwLMGau4xtpfI5JCoq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:26:13.368409', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:26:13.368944', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:26:13.368409' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.3ms) +Completed 200 OK in 62ms (Views: 60.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.2ms) +Completed 200 OK in 139ms (Views: 136.1ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.8ms) +Completed 200 OK in 136ms (Views: 133.5ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$UwU64FqUfSg7fKLQvxjd.Oey0uleE7bFN/LKt9eSm1i8.tHhEVDEq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:26:13.818226', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:26:13.818820', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:26:13.818226' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:26:13 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.6ms) +Completed 200 OK in 135ms (Views: 133.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:26:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (187.5ms) +Completed 200 OK in 190ms (Views: 187.2ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$Cg/tHl5lyB.Fu0vvQxNNzutTIjNxjma/8ESNpvg5dTU3BkhAaw.Om"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (82.4ms) +Completed 200 OK in 90ms (Views: 89.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:44.087906', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:44.087906', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:44.088591' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.8ms) +Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (204.1ms) +Completed 200 OK in 209ms (Views: 205.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.5ms) +Completed 200 OK in 136ms (Views: 133.5ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$rG2dQ9TeS2l3gvb7NE8L7.6GaaPLfoickStyx4z9KH2Ac4RrQ0ewi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:44.515056', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:44.515056', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:44.515740' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (63.5ms) +Completed 200 OK in 65ms (Views: 64.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.8ms) +Completed 200 OK in 140ms (Views: 137.7ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.0ms) +Completed 200 OK in 138ms (Views: 135.6ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$vhjJDxqYjoW179px.zSfcO4Tv14hxlC6FSHNxzHIiMfJsdPEG5UMC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (66.1ms) +Completed 200 OK in 68ms (Views: 67.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:44.972853', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:44.972853', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:44.973435' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:27:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.2ms) +Completed 200 OK in 139ms (Views: 136.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (194.1ms) +Completed 200 OK in 196ms (Views: 194.0ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$xqVW3deRwdF4FZ7JWb4eFOEExbN9qQ/7isvtwojPVLLQwHvrgewwO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:45.367974', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:45.367974', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:45.368535' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (15.6ms) +Completed 200 OK in 20ms (Views: 16.5ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$CLJy80zWVdI6.czqd6ToDefidRiuu92KEJ/IXaOwrjF2.ojBhO6QK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:45.424068', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:45.424068', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:45.424611' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (65.4ms) +Completed 200 OK in 67ms (Views: 65.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.8ms) +Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$otUtUWUaKUWCnVhcaGJlv.bbVaY6kWi4krxCe9G5FNvOY7303yeO2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:45.535388', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:45.535388', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:45.535924' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.4ms) +Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (26.6ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$XGULltrP8g306BAs4RN.re/rJA1CFuAtfkBeGhtXkgplokmtXs6oi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:45.746018', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:45.746018', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:45.746643' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.0ms) +Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (70.2ms) +Completed 200 OK in 72ms (Views: 70.6ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$sBQen40OwL.mIy0akm4XNuLtoGk0BZRkCVet83FPFWLrIaQ3e4T.W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.8ms) +Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:45.891815', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:45.891815', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:45.892414' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.0ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$tQ3cDkDoMYAAGqHPB6KVsOJo4tcv8GTmBKMpODPxhA1GioAsvIype"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (82.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (89.2ms) +Completed 200 OK in 91ms (Views: 90.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:46.035076', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:46.035076', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:46.035673' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.6ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (117.5ms) +Completed 200 OK in 125ms (Views: 117.8ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$4Q.AfSWsDmEUc8VReRC2EueJVCeAd/E5/UtRQ6HYEXdCPnl2Y5Lgu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:46.296640', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:46.296640', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:46.297261' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.5ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (117.5ms) +Completed 200 OK in 119ms (Views: 117.9ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$d8CSQf0X8Ye7kfW1b6zexO9nxMJiGm39GaLwgRj1jQEKOBq6NuHTC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:46.487321', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:46.487321', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:46.487913' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (69.5ms) +Completed 200 OK in 71ms (Views: 70.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #11"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #12"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.1ms) +Completed 200 OK in 141ms (Views: 138.8ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$dwtVhNFL3iH8cYWpf/moZOoyozMA6mVwTbjS69PObkJPQyXzk0m3S"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:46.738989', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:46.738989', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:46.739542' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #14"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #15"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.0ms) +Completed 200 OK in 144ms (Views: 140.7ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$nMycLeDFe3LvjXcCEfIjl..4Kwd9ATlVOUgmU9Ani3Za6J/R2V.QK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:46.984736', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:46.984736', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:46.985291' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #17"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #18"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (197.8ms) +Completed 200 OK in 200ms (Views: 197.4ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$b7ZsNcRXW6vRvyNOexngx.TbheUsumB6DgxX51kGuH3gt3iAgKUD6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:47.231334', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:47.231334', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:47.232895' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (17.8ms) +Completed 200 OK in 22ms (Views: 18.6ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$Zs1oFSh42eWQlskhrLmsDuOe0Zwg5nAYSIO3rPtLGfhKBWjF7/fpa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:47.354447', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:47.354447', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:47.355077' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.4ms) +Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$NkEJBKV/IFwmkQ2/BiSEfO2xRlLPPUnNx8mxdTJZIfwQwueF7QeVK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:47.413628', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:47.413628', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:47.414168' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #21"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (71.5ms) +Completed 200 OK in 74ms (Views: 71.8ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-01 12:27:47.518710' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.2ms) +Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$We5thKZaY8xyiedZ/TFu9OPmkpSDdxKgCy5yP665zUjNoeE2UJ5hG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (64.4ms) +Completed 200 OK in 66ms (Views: 65.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:47.625857', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:47.625857', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:47.626453' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.1ms) +Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-01 12:27:47.666991' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (76.3ms) +Completed 200 OK in 78ms (Views: 76.7ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$b7kWr50hPSqrfo8naZuksu9hg4GSPcumFcE8ifFX5cLOuVpJDMf2u"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:27:47.773561', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:27:47.773561', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:27:47.774099' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #23"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.4ms) +Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-01 12:27:47.816377' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 60ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:27:47 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.8ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:27:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$ATQCqwiyCW38yYaRFrcPdey6X1LX3X4WOzS8JcFDJ3l4ZXlxGnDL2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (72.9ms) +Completed 200 OK in 81ms (Views: 80.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:01.347891', "updated_at" = '2013-03-01 12:29:01.348477', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:01.347891' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (80.0ms) +Completed 200 OK in 88ms (Views: 81.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$OisBDMSuBoxNJNnqFZqhC.Qd51lvfBwGgOECD1ZQISDuS.p3W5iSO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:01.487572', "updated_at" = '2013-03-01 12:29:01.488137', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:01.487572' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.3ms) +Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$H12FlI3Xuf8holY1lhYXx.NNkCUkEClF.QjcZrw6wGttk.9s.UpqG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:01.539684', "updated_at" = '2013-03-01 12:29:01.540398', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:01.539684' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.3ms) +Completed 200 OK in 62ms (Views: 60.8ms | ActiveRecord: 0.1ms) +  (0.2ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (19.9ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (80.4ms) +Completed 200 OK in 84ms (Views: 81.1ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$GjERzV1YhPbcvvca16ATP.lM7d7IYb.GUsDIJ3EduIxJUNlDJUEum"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.6ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:01.756626', "updated_at" = '2013-03-01 12:29:01.757162', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:01.756626' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.4ms) +Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.8ms) +Completed 200 OK in 82ms (Views: 26.2ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$rzuvyrUAmm2VBScMRPW6VuZCbO/f1KWxr1DJkBDrPNPZOyjEJuqna"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:01.902094', "updated_at" = '2013-03-01 12:29:01.902448', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:01.902094' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:01 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.5ms) +Completed 200 OK in 75ms (Views: 73.0ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$qDoFooujL2M75VsR78Yhw.WiI03pyqdR/wWBvr8vhLRzcJkA081wy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:02.017619', "updated_at" = '2013-03-01 12:29:02.018196', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:02.017619' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.0ms) +Completed 200 OK in 20ms (Views: 16.8ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$d/pWGcivWJsnq16mK8xWZefGDDXYXWQhJGx9fGTNIpDuMKEq2gfVe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:02.140042', "updated_at" = '2013-03-01 12:29:02.140634', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:02.140042' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.2ms) +Completed 200 OK in 17ms (Views: 15.5ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$T91RYTw5Ju2k4Y2HqQ5P7OPkZhvr7ihQYrQoZ.eTNgTJAxcZR8IQ."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:02.197759', "updated_at" = '2013-03-01 12:29:02.198332', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:02.197759' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (65.8ms) +Completed 200 OK in 67ms (Views: 66.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.1ms) +Completed 200 OK in 19ms (Views: 16.6ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 12:29:02.301803', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (71.1ms) +Completed 200 OK in 73ms (Views: 71.7ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$b8.nYTiLRwUyLoUmZH.M0uJfv9VNXT05S7/m67L26O7PhwnVKWKZG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:02.409369', "updated_at" = '2013-03-01 12:29:02.409930', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:02.409369' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (20.2ms) +Completed 200 OK in 22ms (Views: 20.5ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 12:29:02.455728', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.4ms) +Completed 200 OK in 75ms (Views: 73.7ms | ActiveRecord: 0.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$7j56gp9trp6XI0oZxnQMLeeMg/eAvXlnHYKZybpfoXXSh.uUOw8IK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:02.560832', "updated_at" = '2013-03-01 12:29:02.561484', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:02.560832' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.6ms) +Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 12:29:02.660773', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.1ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$EWcG8ImLzC0bI3Os0TEuL.AiyqB65q7qlHvrfd.wZSbHRsnW9wJZO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:02.710817', "updated_at" = '2013-03-01 12:29:02.711354', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:02.710817' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (20.2ms) +Completed 200 OK in 78ms (Views: 20.7ms | ActiveRecord: 0.5ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.6ms) +Completed 200 OK in 136ms (Views: 133.3ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$pdNukjdgCVE9RDQ0/8Ns3u1atVB8qIB7d6.OvOEpWxwVByjPjqHfi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:02.982165', "updated_at" = '2013-03-01 12:29:02.982496', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:02.982165' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:02 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (20.7ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (119.7ms) +Completed 200 OK in 122ms (Views: 120.2ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$gS95mvM9vI3BAUBQvY1q/.eVsYpKWOg2kbeB/B1S.vWJy.duUyfPW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:03.242246', "updated_at" = '2013-03-01 12:29:03.242826', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:03.242246' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #11"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (203.6ms) +Completed 200 OK in 206ms (Views: 203.2ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$E6XIjenrefd5hxUnKqRYH.5QNR4upyIqbKQ6M.SkD6UcThPUEGoCK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:03.499559', "updated_at" = '2013-03-01 12:29:03.500185', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:03.499559' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #13"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #14"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.1ms) +Completed 200 OK in 204ms (Views: 201.7ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$QdtJ1fsYte8PCuzVHYssI./Q9Kbm4wihAgIfHsS9wOOgrFIhedoZS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:03.750088', "updated_at" = '2013-03-01 12:29:03.750458', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:03.750088' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #16"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #17"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.9ms) +Completed 200 OK in 144ms (Views: 141.5ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$wwme3bJhGABZlK8ieT89p.6gFMeakQvFVqz959yS/okgKdYmorgyG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.1ms) +Completed 200 OK in 70ms (Views: 69.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:04.003954', "updated_at" = '2013-03-01 12:29:04.004526', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:04.003954' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #19"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (140.8ms) +Completed 200 OK in 144ms (Views: 140.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.1ms) +Completed 200 OK in 203ms (Views: 200.2ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$YRxrlAeGsHIcg79y1GkdH.r3QCV2RAJ8b0iD21lXci2qVpr60usN2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:04.411949', "updated_at" = '2013-03-01 12:29:04.412506', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:04.411949' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.2ms) +Completed 200 OK in 144ms (Views: 141.0ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (1.3ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 68ms (ActiveRecord: 2.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.6ms) +Completed 200 OK in 144ms (Views: 141.4ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$.mFsvH4XVOMf/ol9DCPI3O9HZJ7bt7RtRuZYuzwuGftjqkzPdw886"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>""✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 12:29:04.817950', "updated_at" = '2013-03-01 12:29:04.818488', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:29:04.817950' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (197.8ms) +Completed 200 OK in 200ms (Views: 197.6ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:29:05 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.4ms) +Completed 200 OK in 144ms (Views: 141.2ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (3.7ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$E3Aj2vphBNVylppksgeHe.FQ6y/ICSen507OD7s7Z2.60F5QZE8HS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (80.1ms) +Completed 200 OK in 88ms (Views: 87.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:33 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:33.876206', "current_sign_in_at" = '2013-03-01 12:29:33.876206', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:33.876911', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:33 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:33 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (82.8ms) +Completed 200 OK in 88ms (Views: 85.5ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$au.H1gpgsim/CoWrlqJos.ychXNEEv7Pa.e5Q2q/zzMBLEmVmTMou"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:33 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 9ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.018046', "current_sign_in_at" = '2013-03-01 12:29:34.018046', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.018471', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.8ms) +Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$vr6eIknfVqmFJ16YnAeXYeS1xT7wnJq4pVtKTPn0u18aETCWFtQg2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.131704', "current_sign_in_at" = '2013-03-01 12:29:34.131704', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.132272', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.5ms) +Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 12:29:34.174945', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 15ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (80.4ms) +Completed 200 OK in 84ms (Views: 81.2ms | ActiveRecord: 0.4ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$/oZXwzd0ls8cBWXVaW9CyOQuSd1qLNMK3M1vXLImDzcoFiTNNLZhO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.296022', "current_sign_in_at" = '2013-03-01 12:29:34.296022', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.296566', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (74.4ms) +Completed 200 OK in 77ms (Views: 74.7ms | ActiveRecord: 0.4ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 12:29:34.399035', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.0ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$01V7qXJ5rfWdy9Pi76AjeeJ.YIEWIXv6glPWEHgYNUlmiNGlU77t6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.447772', "current_sign_in_at" = '2013-03-01 12:29:34.447772', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.448327', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (61.7ms) +Completed 200 OK in 64ms (Views: 62.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.8ms) +Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 12:29:34.548663', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.9ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$2Wqhrpd.wveFD0W7UTDF9OhKX/yxreWB4ztjEfoREd8iwjmOQTLKq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.660037', "current_sign_in_at" = '2013-03-01 12:29:34.660037', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.660706', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.7ms) +Completed 200 OK in 18ms (Views: 15.5ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$RJ8cSOXSJ4a.YlO9u0aMTe7LpQLAJJsLzPJrJFeOqD.z4QHK0cply"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.714448', "current_sign_in_at" = '2013-03-01 12:29:34.714448', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.714998', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (75.8ms) +Completed 200 OK in 77ms (Views: 76.1ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$MZAJWYL4JoV5kU8ZseQOlezWxsJZ4K28uWW80ynUKUiBVLLoNUEEi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.829807', "current_sign_in_at" = '2013-03-01 12:29:34.829807', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.830397', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.0ms) +Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 64ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.6ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$EHRroL2Bf8DpQh/o3JQnyORF94oftY9/I6ANgV/tENaDsZD3GmD3C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:34.975150', "current_sign_in_at" = '2013-03-01 12:29:34.975150', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:34.975779', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 13:29:34 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (73.5ms) +Completed 200 OK in 76ms (Views: 73.9ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.0ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$9.JLEhz7R2VATZyvRCj96.GGDbJmmo0fLX8RDpE4hnfaNJCLdf4MS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:35.120104', "current_sign_in_at" = '2013-03-01 12:29:35.120104', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:35.120660', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (61.7ms) +Completed 200 OK in 63ms (Views: 61.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.0ms) +Completed 200 OK in 27ms (Views: 19.4ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.0ms) +Completed 200 OK in 132ms (Views: 128.8ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$Uz8KRy3Y3WRtN2fZxWsOHes2KgrUOoIHgVdeHYfyBnYurkMgx0jP."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:35.391444', "current_sign_in_at" = '2013-03-01 12:29:35.391444', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:35.392018', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (70.9ms) +Completed 200 OK in 72ms (Views: 71.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.3ms) +Completed 200 OK in 22ms (Views: 19.9ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.5ms) +Completed 200 OK in 129ms (Views: 126.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$XmtEPK14UCM5LdUVRaQQ/.VrJ4fORn.uxZ4sAbNO9B08ctSDuscWC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:35.659224', "current_sign_in_at" = '2013-03-01 12:29:35.659224', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:35.659768', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #11"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #12"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (145.1ms) +Completed 200 OK in 148ms (Views: 144.9ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$LD7H8TFNLOTCvKnuKBrNde13mFadHhrhTLWKgnTN0eSdfKGMFOOhe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:35.911443', "current_sign_in_at" = '2013-03-01 12:29:35.911443', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:35.911974', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #14"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #15"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:29:35 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (199.1ms) +Completed 200 OK in 201ms (Views: 198.8ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$PPWWUSqRqsl782gMF.xO5O0y6E8QmwRS98r9Dpv.sXpUxl8vyCewu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:36.160697', "current_sign_in_at" = '2013-03-01 12:29:36.160697', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:36.161283', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #17"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #18"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (142.1ms) +Completed 200 OK in 144ms (Views: 141.0ms | ActiveRecord: 1.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$CZy9nzBGbqC8bsOQndHZnu/O7Fk4sLcaUk11GVSSkO714ge0me04O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:36.418189', "current_sign_in_at" = '2013-03-01 12:29:36.418189', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:36.418562', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.6ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$w/PqC7j.TmRee8BoY1zDS.M0vbqiFJQ4FUCzYGqYUZuUTP84HJKk2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.6ms) +Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:36.477371', "current_sign_in_at" = '2013-03-01 12:29:36.477371', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:36.532978', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 60ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (9.8ms) +Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.3ms) +Completed 200 OK in 141ms (Views: 139.0ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.8ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (140.3ms) +Completed 200 OK in 142ms (Views: 139.5ms | ActiveRecord: 1.4ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$cot20MLuVenYzxzrhUZkfOR67MEr1NvR3KLitX/pgLe9zr/X3D.QS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:36 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:36.945220', "current_sign_in_at" = '2013-03-01 12:29:36.945220', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:36.945797', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:36 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (10.9ms) +Completed 200 OK in 336ms (Views: 12.0ms | ActiveRecord: 0.3ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.7ms) +Completed 200 OK in 137ms (Views: 132.7ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.8ms) +Completed 200 OK in 205ms (Views: 202.6ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$EHPw1RXnLd5r/nz9S3x4auND1uQBEM0j71JQZ8bwsNBiDhhwH7M1i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:29:37.687142', "current_sign_in_at" = '2013-03-01 12:29:37.687142', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:29:37.687884', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #25"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:29:37 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.8ms) +Completed 200 OK in 137ms (Views: 134.3ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 72ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:29:37 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.4ms) +Completed 200 OK in 137ms (Views: 134.3ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.8ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$M.pVZ7p0oi4ZN3iIe0fRlOSM8AxEC8eLgCsYEvjzNRXP4rTfo9wf6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:31:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.8ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (26.6ms) +Completed 200 OK in 34ms (Views: 33.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:31:21.126874', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:31:21.127731', "last_sign_in_at" = '2013-03-01 12:31:21.126874', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.2ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (218.6ms) +Completed 200 OK in 223ms (Views: 219.5ms | ActiveRecord: 1.1ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.0ms) +Completed 200 OK in 132ms (Views: 129.8ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$Dx.AVcHmvsnLv.NhLTWZaetGfmogjfQBgxWf6H6FxhO9GzFVby8Sq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:31:21.567482', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:31:21.568119', "last_sign_in_at" = '2013-03-01 12:31:21.567482', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.3ms) +Completed 200 OK in 135ms (Views: 132.1ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 15ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.6ms) +Completed 200 OK in 132ms (Views: 129.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$sWV7iS3wcV9EDSn2EtHElOzvZz8LNQUzumFFwlBL.2BgkB3jREqWi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:31:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:31:21.962188', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:31:21.963492', "last_sign_in_at" = '2013-03-01 12:31:21.962188', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:31:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.0ms) +Completed 200 OK in 71ms (Views: 70.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:31:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:31:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.3ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.0ms) +Completed 200 OK in 131ms (Views: 128.7ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:31:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.6ms) +Completed 200 OK in 139ms (Views: 131.3ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$1xR/C74jq024ggZugVLd9OD4jfB0cAvcbLTawJmtluLIlqoBYhQOG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:31:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.8ms) +Completed 200 OK in 32ms (Views: 31.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:31:45.029941', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:31:45.030625', "last_sign_in_at" = '2013-03-01 12:31:45.029941' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 13ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (13.1ms) +Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.1ms) +  (0.2ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (205.3ms) +Completed 200 OK in 210ms (Views: 206.5ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.7ms) +Completed 200 OK in 135ms (Views: 132.5ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$I66xnmcoU.fbL8YS662J4.QT56T2W5BFh1wFsEgM32DoJ9JlHwaoq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.8ms) +Completed 200 OK in 14ms (Views: 13.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:31:45.469523', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:31:45.470023', "last_sign_in_at" = '2013-03-01 12:31:45.469523' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (141.8ms) +Completed 200 OK in 145ms (Views: 141.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.4ms) +Completed 200 OK in 132ms (Views: 129.1ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$EWiPJlqleCBiLsM5YxGunef7Nm1ItJV0uLMnfVcaEsC.Z9Qv9dK6m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 12:31:45.871931', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:31:45.872657', "last_sign_in_at" = '2013-03-01 12:31:45.871931' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (64.8ms) +Completed 200 OK in 66ms (Views: 65.4ms | ActiveRecord: 0.2ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:31:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.5ms) +Completed 200 OK in 138ms (Views: 136.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:31:46 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.3ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:31:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.9ms) +Completed 200 OK in 133ms (Views: 130.7ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$flbl0bu3gDxK95xD3Zh8BOlem3MWCd.X8AuB1YeQem2voaGk9NEIa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.7ms) +Completed 200 OK in 33ms (Views: 32.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:33:34.405267', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:33:34.405983', "current_sign_in_at" = '2013-03-01 12:33:34.405267', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.5ms) +Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (206.6ms) +Completed 200 OK in 211ms (Views: 207.8ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.6ms) +Completed 200 OK in 137ms (Views: 134.5ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$KEYcHeeddGeDsTxu3XGYrubuFpDju9ILfdmh1XhzXx9IQ.D70LQgW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:33:34.841859', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:33:34.842497', "current_sign_in_at" = '2013-03-01 12:33:34.841859', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.7ms) +Completed 200 OK in 62ms (Views: 61.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:33:34 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:34 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.0ms) +Completed 200 OK in 135ms (Views: 132.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.4ms) +Completed 200 OK in 136ms (Views: 134.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:35 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$ZcqYVS7hK4vVYcfERwfD5uvKlPQK9ybnkTkY0emeLU2MPloIbUNJO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:33:35 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 12:33:35.227492', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:33:35.228069', "current_sign_in_at" = '2013-03-01 12:33:35.227492', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:35 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:33:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:35 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:33:35 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.5ms) +Completed 200 OK in 137ms (Views: 134.4ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:35 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.7ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.8ms) +Completed 200 OK in 133ms (Views: 130.1ms | ActiveRecord: 1.4ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:54 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$QE1ykDDw/TQnnHb6kmPjhu8BRhBjSNF91vFp/eHI3/Gr7UJjjfSU."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:33:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.6ms) +Completed 200 OK in 32ms (Views: 31.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:54 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:33:54.777925', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:33:54.778578', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:33:54.777925', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:33:54 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:54 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:33:54 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:54 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:33:54 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:54 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.2ms) +Completed 200 OK in 207ms (Views: 203.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.8ms) +Completed 200 OK in 138ms (Views: 135.9ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$d3H447G5376s87iDmjpEmurO5uHshO9ho.CjLiXpAJOtta8COtQNG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:33:55.206011', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:33:55.207229', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:33:55.206011', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.9ms) +Completed 200 OK in 133ms (Views: 129.8ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.1ms) +Completed 200 OK in 135ms (Views: 132.7ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$VsCPxPXCaP85rb51bbSzEeZk5MMkFEPZb3UdcGiafayIc/Z6iqn3q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 12:33:55.593517', "sign_in_count" = 1, "updated_at" = '2013-03-01 12:33:55.594079', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:33:55.593517', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:33:55 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.3ms) +Completed 200 OK in 130ms (Views: 128.0ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:33:55 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.5ms) +Completed 200 OK in 136ms (Views: 133.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$RUZr939RAe/xNYx9PbJwKO1rRt2Cx/csvOAi31XUuw6tsxz6crLEC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:34:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (26.1ms) +Completed 200 OK in 33ms (Views: 32.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:34:10.122240', "updated_at" = '2013-03-01 12:34:10.122975', "current_sign_in_at" = '2013-03-01 12:34:10.122240', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 13ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (204.1ms) +Completed 200 OK in 209ms (Views: 205.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.0ms) +Completed 200 OK in 129ms (Views: 126.8ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$W3c.niLFO9Yf9Dp4Cxx8nO7ceUl76tz7t136tpDo0zFFIlGxQdRRC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.7ms) +Completed 200 OK in 14ms (Views: 13.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:34:10.555212', "updated_at" = '2013-03-01 12:34:10.555890', "current_sign_in_at" = '2013-03-01 12:34:10.555212', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.9ms) +Completed 200 OK in 62ms (Views: 61.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.1ms) +Completed 200 OK in 136ms (Views: 134.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.4ms) +Completed 200 OK in 129ms (Views: 127.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$dWpVyt2RIeuAvezw50OjY./OPnYXNvHnDRtJjFa8w04AbYaFFY1sW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:34:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 12:34:10.934932', "updated_at" = '2013-03-01 12:34:10.935510', "current_sign_in_at" = '2013-03-01 12:34:10.934932', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:34:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:34:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:11 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:34:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.4ms) +Completed 200 OK in 136ms (Views: 133.4ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:34:11 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.4ms) +Completed 200 OK in 132ms (Views: 130.1ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$VpS5tv8MYFagudb19S321ezKbwtmeaoJgTkdepTeFAm0//scpqZiu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:34:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.1ms) +Completed 200 OK in 77ms (Views: 76.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:34:39.874909', "current_sign_in_at" = '2013-03-01 12:34:39.874199', "last_sign_in_at" = '2013-03-01 12:34:39.874199', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 23ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:34:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:34:39 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:34:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (204.3ms) +Completed 200 OK in 209ms (Views: 205.7ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.9ms) +Completed 200 OK in 137ms (Views: 134.6ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$P2OKH3ji3vASG5GLAJHSRekLWNguCGmTZTpdN.H.dEUoOZgZQR.uG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.8ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:34:40.320363', "current_sign_in_at" = '2013-03-01 12:34:40.319148', "last_sign_in_at" = '2013-03-01 12:34:40.319148', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.7ms) +Completed 200 OK in 62ms (Views: 61.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.9ms) +Completed 200 OK in 135ms (Views: 131.8ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.3ms) +Completed 200 OK in 138ms (Views: 136.0ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$jsN68eOlGnw8A836Kkui7eUzhk4vi0x5xUAEOg5ZnchbaAxkhTIqi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 12:34:40.715589', "current_sign_in_at" = '2013-03-01 12:34:40.714999', "last_sign_in_at" = '2013-03-01 12:34:40.714999', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 12:34:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.0ms) +Completed 200 OK in 137ms (Views: 134.6ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 13:34:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.1ms) +Completed 200 OK in 139ms (Views: 137.0ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:00 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$oVIYjofpQr2ZMjnYOgCDn.KZlo7DpA0V6Y5ai5LQqu0.gwhqj/VYO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:00 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (76.6ms) +Completed 200 OK in 84ms (Views: 83.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:00 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:00.904313', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:00.904313', "updated_at" = '2013-03-01 13:10:00.905001' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:00 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:00 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:00 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:00 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:10:00 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:00 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (204.8ms) +Completed 200 OK in 210ms (Views: 206.5ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.7ms) +Completed 200 OK in 138ms (Views: 135.5ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$BorUOzBSr7q6OnKcUczHW.9OkkVQVaZlv6sHaIoKDlei9vy/KyKqq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:01.343685', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:01.343685', "updated_at" = '2013-03-01 13:10:01.344276' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (62.5ms) +Completed 200 OK in 64ms (Views: 63.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.6ms) +Completed 200 OK in 139ms (Views: 137.3ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.9ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.9ms) +Completed 200 OK in 139ms (Views: 135.9ms | ActiveRecord: 1.6ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$HbmNImHVY4q/PADF1Z2R3utq5o7vS3Fp0GibntYbZI8yD7Z0aveQa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:01.791428', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:01.791428', "updated_at" = '2013-03-01 13:10:01.792027' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:10:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.4ms) +Completed 200 OK in 137ms (Views: 134.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.1ms) +Completed 200 OK in 204ms (Views: 201.9ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$HnLMJAgeGdHU7jM2qvapzOHOgEV89/zUrxS/4A/ZQqj/wzKThm5l6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.8ms) +Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:02.196283', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:02.196283', "updated_at" = '2013-03-01 13:10:02.196892' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #9"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (145.9ms) +Completed 200 OK in 148ms (Views: 145.5ms | ActiveRecord: 1.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$emgeHQEbvhntY3rwULDqb.nkSfODF4R7e0jVu0qTmqUSHUaBdqAxe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (5.9ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:02.393507', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:02.393507', "updated_at" = '2013-03-01 13:10:02.450012' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 62ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #11"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (1.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #12"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (231.1ms) +Completed 200 OK in 238ms (Views: 235.6ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$KK72QAHVKx6XFxeTlqlZCemPQjNbszYjqV8ovdlwa5zq1Nux80ooW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:02.734871', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:02.734871', "updated_at" = '2013-03-01 13:10:02.735393' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (4.2ms) SAVEPOINT active_record_1 + Category Load (0.7ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #14"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #15"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (140.8ms) +Completed 200 OK in 143ms (Views: 140.4ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$Nfhtdom7XnAHBEyu0z5YveAeEp7gaEHvzihid2CGZnfE1JC8rDeM6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:02.978432', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:02.978432', "updated_at" = '2013-03-01 13:10:02.978996' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:10:02 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (78.2ms) +Completed 200 OK in 82ms (Views: 78.9ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$BsZyeRMT1XlGSIVh/rmgHuyZpoTVGV2UgsoKij5lLzf5ZWxf/iGTu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:03.099985', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:03.099985', "updated_at" = '2013-03-01 13:10:03.100539' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (13.7ms) +Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$FgpZxYBwkRkYjnHyiLW/I.XRx4HS762AdqHkxSbr2DvpG9uXl2AwW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:03.153624', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:03.153624', "updated_at" = '2013-03-01 13:10:03.154170' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (59.2ms) +Completed 200 OK in 60ms (Views: 59.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.3ms) +Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-01 13:10:03.250112' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (80.4ms) +Completed 200 OK in 84ms (Views: 81.2ms | ActiveRecord: 0.3ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$ALm/yu3egH/h4fSyVswaReIZ1fZ2FK6wnSbpbW1finq4Tlgd.8Wzi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:03.370296', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:03.370296', "updated_at" = '2013-03-01 13:10:03.370825' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.2ms) +Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-01 13:10:03.467760' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.0ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$t3v8KyOjf7LWrLCC3/3EaeDeCtkd67inXDX.y4TR5qiFd07ylioa6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:03.516510', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:03.516510', "updated_at" = '2013-03-01 13:10:03.517048' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (5.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.4ms) +Completed 200 OK in 71ms (Views: 16.8ms | ActiveRecord: 5.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-01 13:10:03.610593' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.6ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$9.rw8c.xYp3H80cbCpqCZuL6a4Bu7JXHo0ar.USOAnpwf6XZ9IhqG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:03.714712', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:03.714712', "updated_at" = '2013-03-01 13:10:03.715571' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.6ms) +Completed 200 OK in 18ms (Views: 15.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$JaNhdY09PJ8JT1PtBpKXB.OdDlVm9DLBid/iz/F89UiD8MvE/jZ3G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:03.768777', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:03.768777', "updated_at" = '2013-03-01 13:10:03.769295' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (69.2ms) +Completed 200 OK in 71ms (Views: 69.5ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$Boi5lPKBkAiqQiPso1pdiOVM/KaIQMhnqTWQ.3VR9swPMXfOu.EUO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (13.0ms) +Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:03.880353', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:03.880353', "updated_at" = '2013-03-01 13:10:03.880959' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.9ms) +Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 9ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:03 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (75.5ms) +Completed 200 OK in 77ms (Views: 75.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$3cxGY4Oofhq/9Iml4hZDj.6Dl7PSPm0SvcaYRENH1zSVa1/BukDea"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:04.024187', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:04.024187', "updated_at" = '2013-03-01 13:10:04.024800' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.1ms) +Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.7ms) +Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (20.2ms) +Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$8/QzAh/1d2VfRs02uXHoz.nFqG5WLPvy.rNkQ0RDg1KuTSZeHN.Jm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:04.172188', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:04.172188', "updated_at" = '2013-03-01 13:10:04.172867' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #21"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (20.0ms) +Completed 200 OK in 79ms (Views: 76.9ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (118.3ms) +Completed 200 OK in 121ms (Views: 118.6ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (1.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$rAYFUO5Iar80TGnydNdzYuHYiaqYx7QFl.DtbQ1xQ93SxqG1oZM7q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:04.434148', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:04.434148', "updated_at" = '2013-03-01 13:10:04.435226' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (80.5ms) +Completed 200 OK in 83ms (Views: 80.8ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (117.9ms) +Completed 200 OK in 120ms (Views: 118.3ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$UAoDeeBHT6ho/P1XJDO8b.cvzUYdeG.ePtcCPfccdaxk1Ep/GXL.W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.1ms) +Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:10:04.692643', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:10:04.692643', "updated_at" = '2013-03-01 13:10:04.693188' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.1ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #23"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:10:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (78.3ms) +Completed 200 OK in 81ms (Views: 78.7ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:10:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (3.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$VSlcZzczGoWEqRlLbkL7WeJptuCtyiyhxXuQrPpXcivlKV8U.OMXi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:41 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (80.3ms) +Completed 200 OK in 89ms (Views: 87.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:41 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:41.926419', "current_sign_in_at" = '2013-03-01 13:28:41.925502', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:41.925502', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:41 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:41 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:28:41 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (82.1ms) +Completed 200 OK in 87ms (Views: 84.0ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$WGzygCevXIR449Xq6z59yOoCukMkrLAlrZitSnZ3mq2lkJkxqFX.O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:42.067204', "current_sign_in_at" = '2013-03-01 13:28:42.066674', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:42.066674', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.9ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$E.8S7Inen6.piN/cO08rJOiYlyzAKoIy9zhDwejgHEqt.C0j4lm7e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:42.180734', "current_sign_in_at" = '2013-03-01 13:28:42.180101', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:42.180101', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.3ms) +Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.2ms) +Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:28:42.224344', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (83.3ms) +Completed 200 OK in 92ms (Views: 89.3ms | ActiveRecord: 0.3ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$xnzcLJmLVygKeV7Hnhw3x.Zhd.rpfrYQFZuh3uzkp74t49evvwomK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:42.348269', "current_sign_in_at" = '2013-03-01 13:28:42.347743', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:42.347743', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (69.6ms) +Completed 200 OK in 73ms (Views: 70.2ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:28:42.450114', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.5ms) +Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$l7o2rho1gp0HKI54BXCt1Ot7H5UEAvAEs5V7Vk9ngsijTeNk.y02O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.7ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.7ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:42.499149', "current_sign_in_at" = '2013-03-01 13:28:42.497806', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:42.497806', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (62.6ms) +Completed 200 OK in 64ms (Views: 63.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.1ms) +Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:28:42.597523', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.8ms) +Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$kX478z3hH.WYHAmIsQJYJum6MXZs0L3blH3KphHULFHcU5da2swHO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:42.706802', "current_sign_in_at" = '2013-03-01 13:28:42.706232', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:42.706232', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.6ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (82.5ms) +Completed 200 OK in 139ms (Views: 86.9ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$TeKgnw2XLbx.7eg9TnhyZeWDZ30ELxKH2VsL5yBZTiroHlMzoBKwS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (66.9ms) +Completed 200 OK in 68ms (Views: 68.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:42.981407', "current_sign_in_at" = '2013-03-01 13:28:42.980824', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:42.980824', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:42 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:42 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.9ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (122.1ms) +Completed 200 OK in 124ms (Views: 122.3ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$SCXlcqpnjrPL3.46ZO.5wuW9j58M1aVk/tdfaHeXZvSrqYZ7jcYDy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:43.232377', "current_sign_in_at" = '2013-03-01 13:28:43.231924', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:43.231924', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.8ms) +Completed 200 OK in 24ms (Views: 15.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$DKR9YaSu2Ygy.Wea2W21Z.sVIB2jZMhrAyU2MvI410mAQnnn6yhIa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.6ms) +Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:43.294552', "current_sign_in_at" = '2013-03-01 13:28:43.294014', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:43.294014', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (71.1ms) +Completed 200 OK in 73ms (Views: 71.1ms | ActiveRecord: 0.6ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$jQo0NzoMPnSg3yLKev39MueF3IHOpzBJ5/NmjQsdRkdtOGMdrdJw."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:43.405470', "current_sign_in_at" = '2013-03-01 13:28:43.404740', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:43.404740', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.1ms) +Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (77.5ms) +Completed 200 OK in 79ms (Views: 77.8ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$e2NiwKd8aWOPlRo9x7Ludu.jTl9pQ9a14PmoQ8BWF463DeITkJFN2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:43.555439', "current_sign_in_at" = '2013-03-01 13:28:43.554830', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:43.554830', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.4ms) +Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (23.2ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$t6vt6jW.G/.QMzPU2qxKZOaZv.JDeq8/wGmMfbYvTIob2YSXspho."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:43.701111', "current_sign_in_at" = '2013-03-01 13:28:43.700564', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:43.700564', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #11"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #12"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (146.5ms) +Completed 200 OK in 149ms (Views: 146.2ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$X1YyXP4lpl8ZYjxv/mX.zuaFKKz2T/62VUBmjgzRxXf/GIQ4x1gzi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:43.951376', "current_sign_in_at" = '2013-03-01 13:28:43.950781', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:43.950781', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #14"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #15"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:28:43 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:43 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (207.3ms) +Completed 200 OK in 209ms (Views: 206.9ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$YzLglRiPZW6yE/ATVIOT.O.RB/a.KBTIoEvhrT5z9lPvaC1QQLQpy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:44.210557', "current_sign_in_at" = '2013-03-01 13:28:44.210106', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:44.210106', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.8ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #17"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #18"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (144.8ms) +Completed 200 OK in 147ms (Views: 144.3ms | ActiveRecord: 1.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$0aO2EPwBAK6lFZ3GMo/jAuekNT22Zf8ScDVablKJdFsqNpodl9C7K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] +  (6.9ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:44.472568', "current_sign_in_at" = '2013-03-01 13:28:44.466497', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:44.466497', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.9ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$P/.bwAL0Tla7g4Hz4uKqgeFEr1VhunLiWKBUZIoiyBIP45V23MjBm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (5.4ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:44.587781', "current_sign_in_at" = '2013-03-01 13:28:44.530523', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:44.530523', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 62ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.3ms) +Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.8ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.9ms) +Completed 200 OK in 141ms (Views: 138.6ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.7ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.9ms) +Completed 200 OK in 141ms (Views: 138.2ms | ActiveRecord: 1.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$OnQzKHQa6tPH3oC7WYw8g.8y5Jf088Bxx4F1GinW0cujLjvcQLk2K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:44 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.1ms) +Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:44.996791', "current_sign_in_at" = '2013-03-01 13:28:44.996063', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:44.996063', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:44 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.4ms) +Completed 200 OK in 140ms (Views: 137.3ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (197.5ms) +Completed 200 OK in 200ms (Views: 197.3ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$FX/r2Zs09jkVRFB1nz9HlupAVneZ2xduRDMs4qsOzOt574d8y.l4."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 13:28:45.398522', "current_sign_in_at" = '2013-03-01 13:28:45.397912', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-01 13:28:45.397912', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #25"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:28:45 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.3ms) +Completed 200 OK in 142ms (Views: 139.1ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 68ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:28:45 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.7ms) +Completed 200 OK in 139ms (Views: 136.6ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$GGGk.KO/Mx33ljMAC/ivQeRJK.KedylTt4H1EshQ3t132MEeFUmoa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.8ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.8ms) +Completed 200 OK in 32ms (Views: 31.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:40:04.555894', "current_sign_in_at" = '2013-03-01 13:40:04.555894', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:40:04.556584' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.4ms) +Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.2ms) +Completed 200 OK in 206ms (Views: 203.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.8ms) +Completed 200 OK in 136ms (Views: 133.6ms | ActiveRecord: 0.8ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$1VkpMharG4IxHhZn5Xu9uudSQPeg0SIrTB550DxG91054SRf0A6mW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:40:04.980667', "current_sign_in_at" = '2013-03-01 13:40:04.980667', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:40:04.981228' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:04 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.7ms) +Completed 200 OK in 137ms (Views: 134.6ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.7ms) +Completed 200 OK in 130ms (Views: 127.5ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:05 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$oZX680WT5MhMKyrX3.Bo9ucPH0tkSDtum/QQRVTeUHYwOr/whaOO2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:05 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (11.7ms) +Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:40:05.365323', "current_sign_in_at" = '2013-03-01 13:40:05.365323', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:40:05.365920' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.3ms) +Completed 200 OK in 62ms (Views: 60.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:05 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.6ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.3ms) +Completed 200 OK in 139ms (Views: 135.7ms | ActiveRecord: 1.4ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (1.0ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.5ms) +Completed 200 OK in 131ms (Views: 127.4ms | ActiveRecord: 1.7ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:08 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$7uSxhPcqNkif8Pb91ipGZev6glG4.mY/zJW6V1Ja7SOwFk/g4S68q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:08 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (78.8ms) +Completed 200 OK in 86ms (Views: 85.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:08 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:08.992608', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:08.993327', "last_sign_in_at" = '2013-03-01 13:40:08.992608' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.6ms) +Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #3"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (207.9ms) +Completed 200 OK in 213ms (Views: 209.0ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$8IzQwuAxRzCtWFA/9GQ6yeYLT1fDLTqwm46LPE1LITT52xHE8umJ6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:09.272200', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:09.272944', "last_sign_in_at" = '2013-03-01 13:40:09.272200' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #5"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #6"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (192.9ms) +Completed 200 OK in 195ms (Views: 192.5ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$4UqorrLMKw4JEFO9AB/X0O5zopPLh0YkVCXFVQhEgN70HnzkreNWS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:09.512607', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:09.513167', "last_sign_in_at" = '2013-03-01 13:40:09.512607' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.7ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #9"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.5ms) +Completed 200 OK in 138ms (Views: 135.0ms | ActiveRecord: 1.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$0cKbcdmcCAj5jWc/odGvr.UtNaBGTwJO6nUE2V/tsnRvAFa1OdOMG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:09.756302', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:09.756983', "last_sign_in_at" = '2013-03-01 13:40:09.756302' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (29.5ms) +Completed 200 OK in 33ms (Views: 29.9ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 63ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.1ms) +Completed 200 OK in 127ms (Views: 124.5ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$E9mJEx0hq5sujQiqUc2Go.AYWQrN5PEnfqkv2viyxT3KIJ8NcjNu6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:10.026832', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:10.027386', "last_sign_in_at" = '2013-03-01 13:40:10.026832' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #11"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (16.7ms) +Completed 200 OK in 19ms (Views: 17.1ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.7ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (69.5ms) +Completed 200 OK in 123ms (Views: 71.3ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$OypZ1yDR6Y74AvscgqBcjex1Bdj5/Tkk14nln/hRPmEyykwL4Rmxe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (64.2ms) +Completed 200 OK in 66ms (Views: 65.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:10.275979', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:10.276567', "last_sign_in_at" = '2013-03-01 13:40:10.275979' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.0ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.6ms) +Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$pGJatkA36yNA7MRL9TA48.RsDW2oQfBhUJf9oKxnRcnliBGdN2FEq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:10.335833', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:10.336352', "last_sign_in_at" = '2013-03-01 13:40:10.335833' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (17.1ms) +Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$20Gte9/RGhwoLfhO9krKR.M5D.C0Omr4y5Ja8/ahvm7ZrHL1FKdjy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:10.449386', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:10.449912', "last_sign_in_at" = '2013-03-01 13:40:10.449386' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #14"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.0ms) +Completed 200 OK in 16ms (Views: 14.4ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:40:10.542049', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (22.5ms) +Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.3ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories" +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$CBSYNrMGGyy5JxGRkD4wjufANB7gLICveovTXtOGFdvmcM2u4AUKO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:10.599570', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:10.600164', "last_sign_in_at" = '2013-03-01 13:40:10.599570' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (57.5ms) +Completed 200 OK in 59ms (Views: 58.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.1ms) +Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:40:10.694073', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.0ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$9HYGzNFYNR2bil9KAzbTzed3VM3wn8V9gbLmdCX3MbvkIt8qmQbzS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (66.2ms) +Completed 200 OK in 68ms (Views: 67.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:10.800617', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:10.801274', "last_sign_in_at" = '2013-03-01 13:40:10.800617' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.4ms) +Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:40:10.843121', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (71.1ms) +Completed 200 OK in 73ms (Views: 71.3ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$cDkXWgrgiGEG0EcTMsc6ue6m7CLvwlZaJ8jE0WDj8t2ASHau8AeCW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:10.945844', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:10.946453', "last_sign_in_at" = '2013-03-01 13:40:10.945844' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:10 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (70.0ms) +Completed 200 OK in 77ms (Views: 70.5ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$jiF//iW5yreMThT39TV9ce5GaY4NKFVSXmXpDRuK9RusCF/hV1coG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.7ms) +Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:11.065209', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:11.065789', "last_sign_in_at" = '2013-03-01 13:40:11.065209' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.5ms) +Completed 200 OK in 18ms (Views: 15.2ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$RmTgz7A9.6t3B1uzF6GuC.343XcgvhPYxGkleKR71fqymEI0I5Ur6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:11.118329', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:11.118837', "last_sign_in_at" = '2013-03-01 13:40:11.118329' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (64.5ms) +Completed 200 OK in 66ms (Views: 65.1ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (15.7ms) +Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$Xdr8VxOezSQw6M4tbGlf2eVXGoCOfFpH0pZpFV68WFbh0OWH0XToa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:11.231552', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:11.232180', "last_sign_in_at" = '2013-03-01 13:40:11.231552' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.4ms) +Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 64ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (19.2ms) +Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$FgZdzohsD29U9L3V4mYTBuF8ao4/CcYSm83/PjhzF8lPCAkHuglsC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:11.379903', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:11.380485', "last_sign_in_at" = '2013-03-01 13:40:11.379903' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (67.9ms) +Completed 200 OK in 70ms (Views: 68.3ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.5ms) +Completed 200 OK in 21ms (Views: 18.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$eLeJPyhL6zFDh17FnEIOE.33XvK0lDst7S5zvFPubYtKjXbHFT4n."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:11.518884', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:11.519426', "last_sign_in_at" = '2013-03-01 13:40:11.518884' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (64.4ms) +Completed 200 OK in 66ms (Views: 64.7ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #19"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.6ms) +Completed 200 OK in 134ms (Views: 131.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.3ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.3ms) +Completed 200 OK in 140ms (Views: 138.1ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$KXKrFHtkE8OPRDDelriMEuJaX3rT90FF7Y0oB8WchluJHGsNIjH2m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 66ms (Views: 66.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:11.972290', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:11.972942', "last_sign_in_at" = '2013-03-01 13:40:11.972290' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (12.2ms) +Completed 200 OK in 13ms (Views: 12.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:11 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.3ms) +Completed 200 OK in 132ms (Views: 129.2ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (196.0ms) +Completed 200 OK in 198ms (Views: 195.9ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$JT.dPGanSPAKEvfogfC33ONuR2sfL7pLq3nY.Fpu8dELWjI71.8FK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.0ms) +Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 13:40:12.371213', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-01 13:40:12.371909', "last_sign_in_at" = '2013-03-01 13:40:12.371213' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.1ms) +Completed 200 OK in 133ms (Views: 130.9ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:40:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (197.5ms) +Completed 200 OK in 200ms (Views: 197.3ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:40:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$lwbmunZzvuXWT8/.3Kjy7u4s91VCqKGWb5jCP3rlsfR6R41YmTlTC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (77.1ms) +Completed 200 OK in 85ms (Views: 84.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:24.149240', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:24.149928', "current_sign_in_at" = '2013-03-01 13:43:24.149240' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (79.7ms) +Completed 200 OK in 88ms (Views: 81.6ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$BRV7zWcOQysdbXk0ORQAHuP1hi9kdTTwHup8t8Ik1qx09Toqxhyq2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:24.287686', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:24.288244', "current_sign_in_at" = '2013-03-01 13:43:24.287686' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.5ms) +Completed 200 OK in 14ms (Views: 13.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$2Kfabu4mMfP/56.GCgOTXOswxnfQFCwRiwiQBLP.S21NB2kYWjCN."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:24.341519', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:24.342232', "current_sign_in_at" = '2013-03-01 13:43:24.341519' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.3ms) +Completed 200 OK in 62ms (Views: 60.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.5ms) +Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (83.6ms) +Completed 200 OK in 87ms (Views: 84.3ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$gpg2qar8Y2EnxEH/Zi6P8uuORXs8QcM7sGNppE9QfjxYnC4WsQuLK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:24.555931', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:24.556501', "current_sign_in_at" = '2013-03-01 13:43:24.555931' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.4ms) +Completed 200 OK in 16ms (Views: 13.7ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.4ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (78.8ms) +Completed 200 OK in 81ms (Views: 79.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$5Dw.0aAKu64J1GX.0QNAnez2K4ZtJir8G9g78k/7OyehUjCjSInyC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:24.700834', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:24.701397', "current_sign_in_at" = '2013-03-01 13:43:24.700834' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (70.3ms) +Completed 200 OK in 74ms (Views: 71.1ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$JkS/Ve.Kktn8POgfDBE0qezYC5T1q2/fWfXjB8aQplmo5MTCJDaZO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:24.815838', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:24.816396', "current_sign_in_at" = '2013-03-01 13:43:24.815838' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.6ms) +Completed 200 OK in 18ms (Views: 15.9ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$hJB5kEao3/dV7dXdBS3hzuPpKy7jHgTec8CNNZ5/IenFnqYrx9GdO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.4ms) +Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:24.878243', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:24.878844', "current_sign_in_at" = '2013-03-01 13:43:24.878243' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (5.7ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 63ms (Views: 7.1ms | ActiveRecord: 5.7ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:24 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.5ms) +Completed 200 OK in 18ms (Views: 15.8ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:43:24.978780', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.8ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:24 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (71.1ms) +Completed 200 OK in 73ms (Views: 71.4ms | ActiveRecord: 0.2ms) + Category Load (5.6ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$gENWBctiQYX5EOebI48wkef80zob42E9p8Rrmv6Dt6OO8jcwnxSbm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:25.088616', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:25.089170', "current_sign_in_at" = '2013-03-01 13:43:25.088616' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.8ms) +Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:43:25.131009', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (75.2ms) +Completed 200 OK in 77ms (Views: 75.3ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$4/lz6fOTAPjCQGjYLZhqReYr2Q2TwGp5BqRVwIo07kTu/29wXRqza"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:25.237167', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:25.237693', "current_sign_in_at" = '2013-03-01 13:43:25.237167' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (75.4ms) +Completed 200 OK in 78ms (Views: 75.8ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 13:43:25.340418', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.7ms) +Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$Hp4VohfkMVfve71WLPQSO.vZLXaVH79aLfDW0xFhi4znVPQEX3AKu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:25.388007', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:25.388559', "current_sign_in_at" = '2013-03-01 13:43:25.388007' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (61.1ms) +Completed 200 OK in 62ms (Views: 61.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (1.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #6"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (23.7ms) +Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$/U3BGm2HF6XiVWmK1uEhfuLW.GYdDz0zTDlFHgh8rRcy0JcsChI.2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:25.508951', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:25.509494', "current_sign_in_at" = '2013-03-01 13:43:25.508951' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (74.1ms) +Completed 200 OK in 76ms (Views: 74.5ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.2ms) +Completed 200 OK in 135ms (Views: 132.0ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$3afBwsg862oJLcXFezsAA.YcrWRJZ6Ux.C.70LYko099F.049Jnz."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:25.777984', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:25.778447', "current_sign_in_at" = '2013-03-01 13:43:25.777984' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:25 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (81.4ms) +Completed 200 OK in 84ms (Views: 81.8ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 7ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:25 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (118.1ms) +Completed 200 OK in 120ms (Views: 118.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$aKHCeYOXRTxbHzKdG2JHQ.uAYj2i8wwEmY66LCR5gRO9SEwPfqRQy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:26.034467', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:26.035118', "current_sign_in_at" = '2013-03-01 13:43:26.034467' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (1.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #11"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (201.8ms) +Completed 200 OK in 204ms (Views: 201.5ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$BCXAPsRBxRuhHNEy6aC.6u8gWO73plGzFgxQkxuKlKchnK3Ko1Mke"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (5.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.1ms) +Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (1.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:26.290866', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:26.291440', "current_sign_in_at" = '2013-03-01 13:43:26.290866' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #13"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #14"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (197.8ms) +Completed 200 OK in 200ms (Views: 197.1ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.7ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$87B57MvvXtIhPE/N0hpuee/XdnyPUSUjTtgnHZdVaJCoWgj6V.Tue"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:26.539749', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:26.540324', "current_sign_in_at" = '2013-03-01 13:43:26.539749' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.9ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #16"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #17"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (140.2ms) +Completed 200 OK in 142ms (Views: 139.8ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #19"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$hvZu3QT4LbExlPLp2iDSf.0wu3mIiEbmvWtmmNGxsT7m7YKq3FHN2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.5ms) +Completed 200 OK in 69ms (Views: 68.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:26.804085', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:26.804677', "current_sign_in_at" = '2013-03-01 13:43:26.804085' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:43:26 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (1.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.2ms) +Completed 200 OK in 136ms (Views: 133.2ms | ActiveRecord: 1.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:26 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (194.8ms) +Completed 200 OK in 197ms (Views: 194.7ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$khD.FY4V6LDBRvq1vGc9Sul4DQZvRD1gAp86F/q8MJxGgFFF8Qdd6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:27.200907', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:27.201522', "current_sign_in_at" = '2013-03-01 13:43:27.200907' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.6ms) +Completed 200 OK in 138ms (Views: 134.7ms | ActiveRecord: 1.5ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.3ms) +Completed 200 OK in 198ms (Views: 139.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.1ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$HRa40aHliS/Xd/FqR8Ox8eVZHdfUhCaBIZch9vIi9PpGrbk1h3iue"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:43:27.594810', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:43:27.595364', "current_sign_in_at" = '2013-03-01 13:43:27.594810' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #25"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:43:27 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.2ms) +Completed 200 OK in 140ms (Views: 138.0ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:43:27 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.4ms) +Completed 200 OK in 138ms (Views: 136.1ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$v12d8wZeA1zsp3duc/7YXObyRrfg3S0k6oXJINL9eah6z95uMXNa."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:46:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.6ms) +Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:46:20.804507', "current_sign_in_at" = '2013-03-01 13:46:20.804507', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:46:20.805237', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:46:20 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (8.2ms) +Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:20 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:46:20 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:20 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:46:20 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:46:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (202.3ms) +Completed 200 OK in 207ms (Views: 203.3ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 13ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.4ms) +Completed 200 OK in 139ms (Views: 136.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$KHhvLVD/89Nw1FvCuj.3UOp2FPrO0ZHFYHCpegmfo72w5WdLPGaNa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:46:21.233269', "current_sign_in_at" = '2013-03-01 13:46:21.233269', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:46:21.233814', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.6ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00]] + Category Load (0.8ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.5ms) +Completed 200 OK in 138ms (Views: 135.5ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.2ms) +Completed 200 OK in 135ms (Views: 133.0ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$vxWBso1kQ59Nqnsj3O.YvuSf9GwTwDmWza2NId.qfd4ehi/HvNT8y"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:46:21.620776', "current_sign_in_at" = '2013-03-01 13:46:21.620776', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:46:21.621334', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 64ms (Views: 13.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.1ms) +Completed 200 OK in 137ms (Views: 135.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.7ms) +Completed 200 OK in 137ms (Views: 134.5ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$tquSpu.Hm80V8SZrMvz6QuKoPdLza/gfwfSFAM8E2rjF5zjs5CltO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (65.0ms) +Completed 200 OK in 67ms (Views: 66.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:46:22.067403', "current_sign_in_at" = '2013-03-01 13:46:22.067403', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:46:22.068009', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:46:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.8ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 13:46:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$UukLTIMpAhOHYezNGSEfKuaDi284U5oE9oS1AJx/BDAbnV/mWjOV6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 13:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 14:46:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 13:46:22.103141', "current_sign_in_at" = '2013-03-01 13:46:22.103141', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 13:46:22.103546', "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 14:46:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$TsuGpqz9QSfHK5qfXWu1Duc04XfowssQpKOrlxPi1XI8EdgwTNMv2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.3ms) +Completed 200 OK in 32ms (Views: 31.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:22.537340', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:00:22.537340', "updated_at" = '2013-03-01 14:00:22.538048' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.4ms) +Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.5ms) +Completed 200 OK in 205ms (Views: 201.5ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 12ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.6ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.1ms) +Completed 200 OK in 133ms (Views: 130.4ms | ActiveRecord: 1.3ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$fQD.nriR04ASCbpo.Z/siuj86fmxyOusKmzN09Ox2.KB1VtfyMG72"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.6ms) +Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:22.955111', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:00:22.955111', "updated_at" = '2013-03-01 14:00:22.955645' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (1.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 1.0ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:22 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.6ms) +Completed 200 OK in 137ms (Views: 134.5ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.0ms) +Completed 200 OK in 137ms (Views: 134.5ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$gHtANoeYkb5iz2zAIFvYS.K8VDFGlBwPPCwjWwajPpoCDaEsLvhnC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:23.340042', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:00:23.340042', "updated_at" = '2013-03-01 14:00:23.340611' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 66ms (Views: 13.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.0ms) +Completed 200 OK in 138ms (Views: 135.9ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.6ms) +Completed 200 OK in 136ms (Views: 134.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$qSHIuey8fKwgX2tRKtkdwOriQ3Uexs0AMOh70Mux7FtSoracczeR2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (66.6ms) +Completed 200 OK in 68ms (Views: 67.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:23.793104', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:00:23.793104', "updated_at" = '2013-03-01 14:00:23.793683' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$3eDpLujkaa9rLJcI3Hzu8etuar./qpUkaNDt50FlTkp0LpyHiwidq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:23 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:23.826584', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:00:23.826584', "updated_at" = '2013-03-01 14:00:23.827217' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:23 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$YlntjkQQAiInqfL2KhFDQuInWICAv91kiLxZ5Conc4pffIKTTyMmi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.8ms) +Completed 200 OK in 32ms (Views: 31.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:38.782956', "last_sign_in_at" = '2013-03-01 14:00:38.782956', "updated_at" = '2013-03-01 14:00:38.783683', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:38 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:38 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #1"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:38 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.2ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (203.3ms) +Completed 200 OK in 209ms (Views: 205.0ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$W6SuxCV3QcPh7mesUmVEjeQx0u/qhOKjJ7ViN6qV/CXtNrj8aoXku"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:39.066855', "last_sign_in_at" = '2013-03-01 14:00:39.066855', "updated_at" = '2013-03-01 14:00:39.067402', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #3"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.8ms) +Completed 200 OK in 139ms (Views: 135.5ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$HxqjZ.4xE7yXhL5AEaTP..3QkFYkbyv5CAuSmkXCtUTnEvN1ye3Bi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.6ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:39.316639', "last_sign_in_at" = '2013-03-01 14:00:39.316639', "updated_at" = '2013-03-01 14:00:39.317342', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.9ms) +Completed 200 OK in 137ms (Views: 133.3ms | ActiveRecord: 1.2ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.7ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.6ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (187.4ms) +Completed 200 OK in 189ms (Views: 187.2ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$78Y2SmXNX5tJUB0GakjHg.AhzOLmWRa7mLziyJzI6CqTJ.b79iwi6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:39.701563', "last_sign_in_at" = '2013-03-01 14:00:39.701563', "updated_at" = '2013-03-01 14:00:39.702121', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.1ms) +Completed 200 OK in 134ms (Views: 131.5ms | ActiveRecord: 1.3ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 65ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.5ms) +Completed 200 OK in 139ms (Views: 136.2ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$r1ztnf1uYvEFIDfHMn0N8OkVYrctx8an8bQFv22ly/MGbWv5GzqKG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:00:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:00:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:00:40.089421', "last_sign_in_at" = '2013-03-01 14:00:40.089421', "updated_at" = '2013-03-01 14:00:40.089982', "sign_in_count" = 1, "last_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:00:40 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:40 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:00:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.3ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:00:40 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:00:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (190.4ms) +Completed 200 OK in 192ms (Views: 189.8ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:00:40 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:00:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.7ms) +Completed 200 OK in 136ms (Views: 133.6ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$BsD4cZL0phElIZOOkVspPegIQsBokDyDkLTZRpdHigPZZLI3FcM46"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.6ms) +Completed 200 OK in 32ms (Views: 31.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 14:01:01.251761', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 14:01:01.251761', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 14:01:01.252485' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.9ms) +Completed 200 OK in 205ms (Views: 202.1ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.9ms) +Completed 200 OK in 136ms (Views: 133.7ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$nzrdtSpT14DRS7vppon6E.xMfudt3LL6iux9FnRu.l9aWBNm6mu9q"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 14:01:01.673313', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 14:01:01.673313', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 14:01:01.673868' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:01 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.2ms) +Completed 200 OK in 131ms (Views: 129.1ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:01 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.4ms) +Completed 200 OK in 134ms (Views: 132.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$YYAsPq8anlqLB..YDwoQ2uIw9dsoll/FIeFGzj7knot.Bg3af2r2G"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 14:01:02.057670', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 14:01:02.057670', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 14:01:02.058271' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (11.7ms) +Completed 200 OK in 70ms (Views: 18.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.9ms) +Completed 200 OK in 131ms (Views: 127.8ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.4ms) +Completed 200 OK in 137ms (Views: 135.3ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$Wlcq.vJyR2GRcWv5qaYgQ.qUVAlw6NsWCZunLqXCQSOaboLlgH38W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (65.6ms) +Completed 200 OK in 68ms (Views: 67.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 14:01:02.505793', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 14:01:02.505793', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 14:01:02.506467' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #7"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.3ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.2ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.5ms) +Completed 200 OK in 128ms (Views: 125.3ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$bk8/smmmJQLaCdAjWhjxdOji18ZzcPBnoamy/TTd3qvuEuRKWU.IK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-01 14:01:02.691105', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-01 14:01:02.691105', "last_sign_in_ip" = '127.0.0.1', "updated_at" = '2013-03-01 14:01:02.691749' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (68.1ms) +Completed 200 OK in 69ms (Views: 68.5ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #9"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.8ms) +Completed 200 OK in 129ms (Views: 126.6ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:20 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$SxK47YCbn03Zt.oMGo/Al.WsLgMT5th4tr7Vv9aWssDeHPXohiyqO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:20 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (25.2ms) +Completed 200 OK in 33ms (Views: 32.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:20 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 14:01:20.837502', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:01:20.836786', "last_sign_in_at" = '2013-03-01 14:01:20.836786' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:20 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.3ms) +Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:20 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:20 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:20 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #1"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:20 UTC +00:00]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:20 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (194.7ms) +Completed 200 OK in 204ms (Views: 200.4ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$ReqsOKvVDqN2PTOj1h1iH.VWCRuMS0CN2J4/Y24gf7SQ2o3ob6xjC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 14:01:21.119920', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:01:21.119318', "last_sign_in_at" = '2013-03-01 14:01:21.119318' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #3"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.8ms) +Completed 200 OK in 132ms (Views: 128.7ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$/.i/yHxzTN47vRtGbfynh.BrSIos4H/gadVJdzvu0PWlPmBIxXOdS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.6ms) +Completed 200 OK in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 14:01:21.366812', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:01:21.366239', "last_sign_in_at" = '2013-03-01 14:01:21.366239' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.5ms) +Completed 200 OK in 135ms (Views: 132.0ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 1.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (192.3ms) +Completed 200 OK in 194ms (Views: 192.1ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$H92QBZ.OZUYeW/xfCtC4h.VERpWS8b7jjnVpF9uJ/wdinrFWBhCCm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 14:01:21.755902', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:01:21.755345', "last_sign_in_at" = '2013-03-01 14:01:21.755345' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:21 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.4ms) +Completed 200 OK in 139ms (Views: 136.1ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 65ms (ActiveRecord: 1.1ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:21 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.8ms) +Completed 200 OK in 138ms (Views: 134.7ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:22 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$JfIN0ZEA4lekmr3rRLZCf.2BUTUzekcIcZFM2VDW2dLooqGmZHTde"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:01:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:01:22 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-01 14:01:22.145474', "sign_in_count" = 1, "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:01:22.144906', "last_sign_in_at" = '2013-03-01 14:01:22.144906' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:01:22 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:22 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:01:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:01:22 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:01:22 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.1ms) +Completed 200 OK in 193ms (Views: 190.9ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:01:22 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:01:22 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.0ms) +Completed 200 OK in 129ms (Views: 127.0ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$dgIgi2DkLF/yiQEumIDHTuwfKpdztP4bR0vn7YWqT/oiy4AhjdHcS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.6ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.0ms) +Completed 200 OK in 32ms (Views: 30.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:02:46.351016', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:02:46.351016', "updated_at" = '2013-03-01 14:02:46.351737' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (197.8ms) +Completed 200 OK in 202ms (Views: 198.9ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.3ms) +Completed 200 OK in 133ms (Views: 131.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$ayJn/8OnTj8xdkgEuIBxQecUWYS7JyrWkVcavAmlVjulaerJREmou"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:02:46.768671', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:02:46.768671', "updated_at" = '2013-03-01 14:02:46.769259' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00]] + Category Load (0.7ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:02:46 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.8ms) +Completed 200 OK in 131ms (Views: 128.7ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:46 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.1ms) +Completed 200 OK in 136ms (Views: 133.8ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$ymoH.AZx8y2nkMb.5xcxMe2RdgmzE4gHZUZv97ffkOg7dqUn4Z8Vq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.5ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:02:47.157184', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:02:47.157184', "updated_at" = '2013-03-01 14:02:47.157756' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (11.6ms) +Completed 200 OK in 70ms (Views: 18.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.5ms) +Completed 200 OK in 132ms (Views: 129.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (137.6ms) +Completed 200 OK in 139ms (Views: 137.3ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$bGuqxgnnxnu5UuBahYscbe9koVcpTViysW564Vaw5IHn5BrLx1AZi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (65.9ms) +Completed 200 OK in 67ms (Views: 66.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:02:47.608857', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:02:47.608857', "updated_at" = '2013-03-01 14:02:47.609476' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #7"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (5.5ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.0ms) +Completed 200 OK in 128ms (Views: 124.9ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.6ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$nZW6XxujirSwKrz0BE.rxu6TkPA.c3B8jYge5jwUiT1D94rb3dxOG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.1ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-01 14:02:47.798386', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:02:47.798386', "updated_at" = '2013-03-01 14:02:47.798928' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #9"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:02:47 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:02:47 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.3ms) +Completed 200 OK in 132ms (Views: 129.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (3.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$8PqD73H7TaGo7mfebp89reol9fEgT4xB9EpUXsYBiOy1v9YKvtm6e"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (78.8ms) +Completed 200 OK in 87ms (Views: 86.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:09.549570', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:09.549570', "updated_at" = '2013-03-01 14:08:09.550236', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.9ms) +Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.5ms) +Completed 200 OK in 205ms (Views: 201.7ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.5ms) +Completed 200 OK in 138ms (Views: 136.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$bsxCR9.PWzU.YdJRlbYbfuYyr/MDeAuKy4WICrioDHGUNdDjXvt5O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:09 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:09.969395', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:09.969395', "updated_at" = '2013-03-01 14:08:09.969959', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:09 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.5ms) +Completed 200 OK in 139ms (Views: 136.6ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (138.1ms) +Completed 200 OK in 140ms (Views: 137.9ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$p7Yh.rnttj4KuHbNxDLU.eX3KvKoTPiwIkoQ1gRceizUDYUq7Y/Rq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.2ms) +Completed 200 OK in 69ms (Views: 68.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:10.424868', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:10.424868', "updated_at" = '2013-03-01 14:08:10.425458', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.2ms) +Completed 200 OK in 135ms (Views: 133.0ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (191.8ms) +Completed 200 OK in 194ms (Views: 191.5ms | ActiveRecord: 0.9ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$DnraMS22J1N7XPjOTLKMQOx3u9SGuMxFBbDFLzxZyph68Bcvv/vCy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:10.812603', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:10.812603', "updated_at" = '2013-03-01 14:08:10.813194', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #9"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (134.0ms) +Completed 200 OK in 136ms (Views: 133.8ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$VUBQZDTl76y7yrETd1VXOODYWahUkB..Vik14vpk.um1DqTSzFkyW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:10 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 65ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:11.061237', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:11.061237', "updated_at" = '2013-03-01 14:08:11.061842', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #11"], ["parent_id", 1], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (133.4ms) +Completed 200 OK in 135ms (Views: 133.2ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$v6O4Y6IzmbHpBLccRgDDPOMfAINaZQ1rEimUelsf0Opgy2mv3Z302"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:11.250626', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:11.250626', "updated_at" = '2013-03-01 14:08:11.251187', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (69.7ms) +Completed 200 OK in 71ms (Views: 70.2ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (16.4ms) +Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$fPtV5VoeEVBACIoKS61xYOLnf4uIEroJsreXGV20sqbUPXqQSzup2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:11.370742', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:11.370742', "updated_at" = '2013-03-01 14:08:11.371303', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.0ms) +Completed 200 OK in 16ms (Views: 14.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.3ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$Cf3A4dDWca48YmpL6zWzTecDo89.2dUsEHmaXlDLzOP7uzzlH5QgW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.2ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:11.478687', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:11.478687', "updated_at" = '2013-03-01 14:08:11.479293', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.0ms) +Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 15ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (81.1ms) +Completed 200 OK in 85ms (Views: 81.9ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$oPmogSL5tI.5QMS08OHGbeBsnAGvd.r74LRE4McbTrWOvJyFz3K9K"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.4ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:11.639121', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:11.639121', "updated_at" = '2013-03-01 14:08:11.639669', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/new" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (1.3ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (74.4ms) +Completed 200 OK in 76ms (Views: 73.6ms | ActiveRecord: 1.4ms) +Started POST "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.0ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$eOFH4qJeERHHa79iS9G0vurOFVU14dGs3sqAU2FadqI.6muyezKW6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:11.784540', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:11.784540', "updated_at" = '2013-03-01 14:08:11.785062', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.9ms) +Completed 200 OK in 62ms (Views: 61.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.5ms) +Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$5tJq34b5B9l5Ppg3LqwjTOk870hpqoPkXJcxaBawH1z08BQ8sc5NC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:11.900621', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:11.900621', "updated_at" = '2013-03-01 14:08:11.901166', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #14"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #15"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #16"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 14:08:11 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:11 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (190.9ms) +Completed 200 OK in 193ms (Views: 190.4ms | ActiveRecord: 1.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$c3PkD6WcZDQeszFUv2fzk./TQ.oNWWKbPNWK/79mLnVSsTK4BJcTq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.7ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:12.151065', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:12.151065', "updated_at" = '2013-03-01 14:08:12.151631', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #18"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #19"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (5.8ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.4ms) +Completed 200 OK in 202ms (Views: 194.1ms | ActiveRecord: 6.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$0/WBwWv1ZASIX7CL1bxsy.Ke3w57u5c75I7pkAG9gDmPsZPHTrMIK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.9ms) +Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:12.401500', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:12.401500', "updated_at" = '2013-03-01 14:08:12.402065', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #22"], ["parent_id", nil], ["rgt", 6], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (139.1ms) +Completed 200 OK in 141ms (Views: 138.5ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$b3hPkKuyYaY7YiO0ja5SDubTIBsNgKtF1QZX2UgsRxtepXwHtOUiO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.5ms) +Completed 200 OK in 69ms (Views: 68.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:12.650232', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:12.650232', "updated_at" = '2013-03-01 14:08:12.650830', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #23"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.2ms) +Completed 200 OK in 20ms (Views: 17.0ms | ActiveRecord: 0.3ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$bzcXwAhTtQTSwYZF/YhyT.rfk1XUYbMp6.eZIyMojUrAh9cM8Wfm."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:12.709278', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:12.709278', "updated_at" = '2013-03-01 14:08:12.709872', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (1.2ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #24"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.9ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$HdYeNoIREvWV0pYIR2oz7uI.RWCjXe6Dxg6M9r7eaW2Yh2ZRrqCkW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 9.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:12.827064', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:12.827064', "updated_at" = '2013-03-01 14:08:12.827686', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.3ms) +Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 14:08:12.924037', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (24.2ms) +Completed 200 OK in 26ms (Views: 24.5ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$0D9ZB/bRzrQ10lyVstD.q.xR2qCfLxl0r6HCAG1S1FFTmKUSW8ysS"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:12 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:12.981550', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:12.981550', "updated_at" = '2013-03-01 14:08:12.982073', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:12 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.3ms) +Completed 200 OK in 62ms (Views: 60.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #26"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (16.5ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.3ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 14:08:13.078943', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.6ms) +Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$9CF9TIGbiSes1Vh9KG2truTzxDji/PWPEfQTgAe0uBD8Mt0yHUSam"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (69.6ms) +Completed 200 OK in 71ms (Views: 70.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:13.188816', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:13.188816', "updated_at" = '2013-03-01 14:08:13.189439', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #27"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.0ms) +Completed 200 OK in 17ms (Views: 15.3ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "updated_at" = '2013-03-01 14:08:13.230937', "name" = 'An updated example category' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (74.9ms) +Completed 200 OK in 77ms (Views: 75.3ms | ActiveRecord: 0.2ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example19@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example19@example.com"], ["encrypted_password", "$2a$04$T2TiN2q7jK8TYBBUdA7eROIlPPgP/ZJrYK.DGcNCsBt/ryUjNjIIu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example19@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example19@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:13.336919', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:13.336919', "updated_at" = '2013-03-01 14:08:13.337536', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (11.7ms) +Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #28"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.0ms) +Completed 200 OK in 74ms (Views: 72.3ms | ActiveRecord: 0.3ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (123.7ms) +Completed 200 OK in 126ms (Views: 124.3ms | ActiveRecord: 0.3ms) +  (0.7ms) SELECT COUNT(*) FROM "categories"  +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example20@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example20@example.com"], ["encrypted_password", "$2a$04$WGXN.Pvdw9IUyQi8nfqOz.C/rGwisM45m4dkKJzFnTSO1.qItIgvq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.8ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example20@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example20@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_at" = '2013-03-01 14:08:13.600997', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "last_sign_in_at" = '2013-03-01 14:08:13.600997', "updated_at" = '2013-03-01 14:08:13.601537', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #29"], ["parent_id", nil], ["rgt", 2], ["updated_at", Fri, 01 Mar 2013 14:08:13 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.9ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (2.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 60ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Fri Mar 01 15:08:13 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (68.8ms) +Completed 200 OK in 71ms (Views: 69.2ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$j3/F1MhQRbbDUp3mD9Tlxu3mWVGL3AvJvC9zougxSW6PzBHZoNLZu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.7ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (69.4ms) +Completed 200 OK in 77ms (Views: 76.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:02.957566', "last_sign_in_at" = '2013-03-02 14:39:02.956897', "current_sign_in_at" = '2013-03-02 14:39:02.956897', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 12ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.5ms) +Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #3"], ["parent_id", nil], ["rgt", 6], ["updated_at", Sat, 02 Mar 2013 14:39:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (200.0ms) +Completed 200 OK in 210ms (Views: 201.1ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$l/1dd1nLJuGz1TSrhpmqKOsPKBcxBQW6ZhhIYvSD2WCfYE777YNRK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.1ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:03.228433', "last_sign_in_at" = '2013-03-02 14:39:03.227924', "current_sign_in_at" = '2013-03-02 14:39:03.227924', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #5"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #6"], ["parent_id", nil], ["rgt", 6], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.3ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (187.2ms) +Completed 200 OK in 189ms (Views: 186.7ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$ZIMycyxbQoVs2TIVUOSlB.MqeHKhVwQsH.OiFiX46AKKyjrI7Ms9C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:03.459999', "last_sign_in_at" = '2013-03-02 14:39:03.459471', "current_sign_in_at" = '2013-03-02 14:39:03.459471', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 5], ["name", "Category #9"], ["parent_id", nil], ["rgt", 6], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 3 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" < 5) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 3) AND ("categories"."lft" > 5) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.4ms) +Completed 200 OK in 132ms (Views: 130.0ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$2nD7o/XZxZ6SwglkwRwDo.hVk5S1W0RW0mUPXdGKubdvy/R8dXSZO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (63.5ms) +Completed 200 OK in 65ms (Views: 64.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:03.693112', "last_sign_in_at" = '2013-03-02 14:39:03.692566', "current_sign_in_at" = '2013-03-02 14:39:03.692566', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (18.3ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$2b/hJuTQZQ0pN1u9i3rJteml3RH9UKFXfkf7DV6mmMNuoeOXjZCdC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.2ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:03.756942', "last_sign_in_at" = '2013-03-02 14:39:03.756436', "current_sign_in_at" = '2013-03-02 14:39:03.756436', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (60.4ms) +Completed 200 OK in 62ms (Views: 61.1ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #11"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (15.3ms) +Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.0ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example6@example.com"], ["encrypted_password", "$2a$04$5NHhHTvFm0RKrlX0hxXeSeE.TTnnhQe/WAHN.msOW4M.vQunYsrhi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example6@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example6@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:03.865998', "last_sign_in_at" = '2013-03-02 14:39:03.865484', "current_sign_in_at" = '2013-03-02 14:39:03.865484', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.7ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #12"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (65.5ms) +Completed 200 OK in 67ms (Views: 65.9ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +Started PUT "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-02 14:39:03.958406' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:03 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (23.6ms) +Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 0.3ms) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example7@example.com"], ["encrypted_password", "$2a$04$R25fv.zsN/qAVlqEuak8xu1t9yMGkMa62zPdr1p0D7vkcsUoKVprG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (62.8ms) +Completed 200 OK in 64ms (Views: 64.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example7@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example7@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:04.073280', "last_sign_in_at" = '2013-03-02 14:39:04.072684', "current_sign_in_at" = '2013-03-02 14:39:04.072684', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #13"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (14.2ms) +Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.2ms) +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-02 14:39:04.111247' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (67.4ms) +Completed 200 OK in 69ms (Views: 67.7ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example8@example.com"], ["encrypted_password", "$2a$04$ZX8RLw6/.SAtDsmtaIMaAOccw6jBvRVzQABtGA5D6vnnLF/ugOABm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example8@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example8@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:04.209240', "last_sign_in_at" = '2013-03-02 14:39:04.208719', "current_sign_in_at" = '2013-03-02 14:39:04.208719', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 13ms (Views: 6.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #14"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1/edit" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (13.7ms) +Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started PUT "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#update as HTML + Parameters: {"category"=>{"name"=>"An updated example category", "parent_id"=>""}, "commit"=>"Update Category", "utf8"=>"✓", "id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) UPDATE "categories" SET "name" = 'An updated example category', "updated_at" = '2013-03-02 14:39:04.253046' WHERE "categories"."id" = 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.9ms) +Completed 200 OK in 72ms (Views: 19.3ms | ActiveRecord: 0.2ms) + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example9@example.com"], ["encrypted_password", "$2a$04$HpFEgf62CaKxpHUXAqRKkONMEsOvbLdS8kzanjCI6gGsTX0ejE5sW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example9@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example9@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:04.352359', "last_sign_in_at" = '2013-03-02 14:39:04.351844', "current_sign_in_at" = '2013-03-02 14:39:04.351844', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (4.8ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #15"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (73.7ms) +Completed 200 OK in 76ms (Views: 74.1ms | ActiveRecord: 0.2ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (111.2ms) +Completed 200 OK in 113ms (Views: 111.5ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories" +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example10@example.com"], ["encrypted_password", "$2a$04$DxqawHxgNdGT4g2MLpojuexk8Qq/0r0VgcvOSystbrl4Boz15p.zW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.7ms) +Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example10@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example10@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:04.593218', "last_sign_in_at" = '2013-03-02 14:39:04.591814', "current_sign_in_at" = '2013-03-02 14:39:04.591814', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (4.8ms) +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #16"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "categories" +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (74.9ms) +Completed 200 OK in 77ms (Views: 75.3ms | ActiveRecord: 0.4ms) +Started DELETE "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#destroy as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) DELETE FROM "categories" WHERE ("lft" > 1 AND "rgt" < 2) + SQL (0.1ms) UPDATE "categories" SET "lft" = ("lft" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."lft" > 2) ORDER BY "categories"."lft") + SQL (0.1ms) UPDATE "categories" SET "rgt" = ("rgt" - 2) WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE ("categories"."rgt" > 2) ORDER BY "categories"."lft") + SQL (0.0ms) DELETE FROM "categories" WHERE "categories"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (111.5ms) +Completed 200 OK in 114ms (Views: 111.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example11@example.com"], ["encrypted_password", "$2a$04$lPjRyQPVKyY7gE73iqMVtuudAOYD1jCX0ENgYdmZ9Sq4tKZ/dzJgq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (11.7ms) +Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example11@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example11@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:04.836517', "last_sign_in_at" = '2013-03-02 14:39:04.836019', "current_sign_in_at" = '2013-03-02 14:39:04.836019', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.9ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #17"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (67.0ms) +Completed 200 OK in 70ms (Views: 67.4ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example12@example.com"], ["encrypted_password", "$2a$04$Q/bvm3LA5yinNfnI3W0wZODqpl2fcCmiU.rys7GCONLS/wayME0BO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example12@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example12@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:04.944345', "last_sign_in_at" = '2013-03-02 14:39:04.944070', "current_sign_in_at" = '2013-03-02 14:39:04.944070', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (14.1ms) +Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example13@example.com"], ["encrypted_password", "$2a$04$ia0jtklQb5Pyl26xZZnTR.ExxdCJx18xDSyY3kRPw7UqTRLPSu1FC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:04 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:04 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example13@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example13@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:04.997483', "last_sign_in_at" = '2013-03-02 14:39:04.997047', "current_sign_in_at" = '2013-03-02 14:39:04.997047', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (61.5ms) +Completed 200 OK in 63ms (Views: 61.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (13.5ms) +Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example14@example.com"], ["encrypted_password", "$2a$04$SVBVFeNumbfAtbXJHWcbPugEYl0ppRcMnPg7.TjnfRJGW0GBJlOoy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example14@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example14@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:05.102959', "last_sign_in_at" = '2013-03-02 14:39:05.102451', "current_sign_in_at" = '2013-03-02 14:39:05.102451', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.0ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (12.0ms) +Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 60ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (18.1ms) +Completed 200 OK in 21ms (Views: 18.5ms | ActiveRecord: 0.2ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example15@example.com"], ["encrypted_password", "$2a$04$170YWOjOpqt5C/htRqiJNOBOw7cQXcrU4TAAd6/L7J57bDiGFfpOy"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (12.2ms) +Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example15@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example15@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:05.244710', "last_sign_in_at" = '2013-03-02 14:39:05.244184', "current_sign_in_at" = '2013-03-02 14:39:05.244184', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.3ms) +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.1ms) SELECT COUNT(*) FROM "categories"  +Started GET "/admin/categories/new" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#new as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/new.html.arb (65.4ms) +Completed 200 OK in 68ms (Views: 66.4ms | ActiveRecord: 0.2ms) +Started POST "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#create as HTML + Parameters: {"category"=>{"name"=>"An example category", "parent_id"=>""}, "commit"=>"Create Category", "utf8"=>"✓"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "An example category"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin/categories/1 +Completed 302 Found in 6ms (ActiveRecord: 0.0ms) +Started GET "/admin/categories/1" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#show as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] +  (0.1ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + CACHE (0.0ms) SELECT COUNT(*) FROM "active_admin_comments" WHERE "active_admin_comments"."resource_id" = '1' AND "active_admin_comments"."namespace" = 'admin' AND "active_admin_comments"."resource_type" = 'Category' + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (17.0ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example16@example.com"], ["encrypted_password", "$2a$04$m9ZdTnb71nzJIqGzkkx3BuMr32gSQTTy.zYCG5y.JS0yGFkMCw3Iu"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.4ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example16@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example16@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:05.375435', "last_sign_in_at" = '2013-03-02 14:39:05.374974', "current_sign_in_at" = '2013-03-02 14:39:05.374974', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 61ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.7ms) +Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #18"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #19"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (122.0ms) +Completed 200 OK in 124ms (Views: 121.9ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.6ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.0ms) +Completed 200 OK in 133ms (Views: 130.5ms | ActiveRecord: 1.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example17@example.com"], ["encrypted_password", "$2a$04$7zlyBllQgA/..hK3rxZR6OJ.I0J8fo2xjifZlwNp9gDzts67x8nn."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.0ms) +Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example17@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example17@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:05.803511', "last_sign_in_at" = '2013-03-02 14:39:05.802980', "current_sign_in_at" = '2013-03-02 14:39:05.802980', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #20"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #21"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:05 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.0ms) +Completed 200 OK in 130ms (Views: 127.7ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:05 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (179.9ms) +Completed 200 OK in 182ms (Views: 179.7ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example18@example.com"], ["encrypted_password", "$2a$04$14OY2EtleVPs8hCtTXNHge.tMRLURXLVfs6enNGCU8pVb2rRffBni"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example18@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example18@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:06.169993', "last_sign_in_at" = '2013-03-02 14:39:06.169484', "current_sign_in_at" = '2013-03-02 14:39:06.169484', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.4ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #22"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #23"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.7ms) +Completed 200 OK in 131ms (Views: 128.4ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 64ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (131.6ms) +Completed 200 OK in 134ms (Views: 131.5ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example19@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example19@example.com"], ["encrypted_password", "$2a$04$986ScCytP3WIYC0rRUHRm.YmY0fHI6VpOcVtU4tDtVI57F93hp2CG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.9ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example19@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example19@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:06.546093', "last_sign_in_at" = '2013-03-02 14:39:06.545581', "current_sign_in_at" = '2013-03-02 14:39:06.545581', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.0ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #25"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #24"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (184.5ms) +Completed 200 OK in 186ms (Views: 184.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example20@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example20@example.com"], ["encrypted_password", "$2a$04$d8l/yBQ0tKVImsg0sNJWy.Oj49oSp/od2fLVhF.UhBqlFtInftFZK"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (8.3ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example20@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example20@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:39:06.787323', "last_sign_in_at" = '2013-03-02 14:39:06.786801', "current_sign_in_at" = '2013-03-02 14:39:06.786801', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #27"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #26"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.0ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:39:06 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.8ms) +Completed 200 OK in 130ms (Views: 127.5ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #28"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (6.4ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #29"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:39:06 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:38 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$Katwazni9dfwDmBkcy9xvOkvWYn/t81T057vJkgUFzXkMSeKpL.fC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:41:38 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (44.9ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (71.8ms) +Completed 200 OK in 80ms (Views: 79.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:38 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:41:38.883101', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:41:38.882379', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-02 14:41:38.882379', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:41:38 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.1ms) +Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:38 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:41:38 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:38 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:41:38 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:38 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (3.5ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (189.3ms) +Completed 200 OK in 194ms (Views: 187.0ms | ActiveRecord: 4.3ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.1ms) +Completed 200 OK in 129ms (Views: 127.1ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.2ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$7O0vO0PUW2QIT8s6CzxLbuS8V507fLMIrVRo7EeCTlDwXAXwHhRD."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:41:39.284580', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:41:39.284061', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-02 14:41:39.284061', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (66.2ms) +Completed 200 OK in 68ms (Views: 66.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.6ms) +Completed 200 OK in 139ms (Views: 136.4ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (136.5ms) +Completed 200 OK in 139ms (Views: 136.2ms | ActiveRecord: 1.0ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$NLwEUUG6eKAUkeFm4HdDceVvq0LLg3/fIgUwaQFpbZ1u4cRMVgLVm"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.4ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:41:39.738077', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:41:39.737384', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-02 14:41:39.737384', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:41:39 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (132.9ms) +Completed 200 OK in 135ms (Views: 132.7ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.0ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 8ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:39 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (184.3ms) +Completed 200 OK in 186ms (Views: 184.0ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.4ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$T9kKg80yJlZXxMomGqmv6.M4G9K4BlWQ.vUovLmsMQajjZygZX.iq"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.5ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (9.4ms) +Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:41:40.119831', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:41:40.119170', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-02 14:41:40.119170', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.9ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #7"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (130.3ms) +Completed 200 OK in 133ms (Views: 130.3ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$Qm7fS41RkCeoGRxZ64V66uTxuWlxJRsI4alYVs2fhRQzOL/bQvC52"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "updated_at" = '2013-03-02 14:41:40.363338', "current_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:41:40.362753', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_at" = '2013-03-02 14:41:40.362753', "sign_in_count" = 1 WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.3ms) +Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #9"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:41:40 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:41:40 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.4ms) +Completed 200 OK in 130ms (Views: 128.1ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (1.0ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$5VywYA770r3ETrdi8EsLAOBntCfdnnnxDOnJJtsNFnM3MJMfJBGPC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (45.2ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (67.1ms) +Completed 200 OK in 75ms (Views: 74.5ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:02.568453', "current_sign_in_at" = '2013-03-02 14:43:02.568453', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:02.569112' WHERE "admin_users"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.5ms) +Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #1"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #2"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (3.5ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (189.4ms) +Completed 200 OK in 194ms (Views: 187.0ms | ActiveRecord: 4.2ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.1ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (127.6ms) +Completed 200 OK in 129ms (Views: 127.5ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$owED9OA4Pst3ucy4DX4QIuGeprffvnlNRe3pBt/wq9K5uuqQgbG9O"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:02 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.3ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:02.968434', "current_sign_in_at" = '2013-03-02 14:43:02.968434', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:02.968959' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 4ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:02 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (59.5ms) +Completed 200 OK in 61ms (Views: 59.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #3"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #4"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (5.0ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.5ms) +Completed 200 OK in 131ms (Views: 123.5ms | ActiveRecord: 5.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (129.1ms) +Completed 200 OK in 131ms (Views: 128.8ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.3ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$zpOiX/7p/4bkK1LCONxA8efWuX9MmoJUmLmi5ZqbNaMKyi798wz2W"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:03.395166', "current_sign_in_at" = '2013-03-02 14:43:03.395166', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:03.395777' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.9ms) +Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.7ms) +Completed 200 OK in 128ms (Views: 126.5ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 8ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (179.1ms) +Completed 200 OK in 181ms (Views: 179.1ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$dPfkUkipGqnQPGp35vbm1O64VS79X03Rudj6WBxvFvGtRCljOAvby"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:03.761613', "current_sign_in_at" = '2013-03-02 14:43:03.761613', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:03.762140' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.5ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #8"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #7"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.4ms) +Completed 200 OK in 127ms (Views: 125.2ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$lz2ScOhBZHhqwzHwCQU47eeboPBsYRpNN1r5Z5SdKsyFHNpdPGmA2"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:03.996146', "current_sign_in_at" = '2013-03-02 14:43:03.996146', "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:03.996721' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:03 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.5ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:04 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #10"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:04 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #9"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:04 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:04 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.5ms) +Completed 200 OK in 129ms (Views: 126.4ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:15 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$nAeLc1OdaqnZRpjN/xmpjex2AnHWp5vw0NCwDHrHGcltlVuakJn0a"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:15 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.1ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (24.3ms) +Completed 200 OK in 76ms (Views: 74.9ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:15 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:15.960859', "current_sign_in_at" = '2013-03-02 14:43:15.960140', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:15.960140' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 11ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:15 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (7.7ms) +Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:15 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:15 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:15 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #1"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:15 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (187.7ms) +Completed 200 OK in 191ms (Views: 188.7ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$z7BAJsT3HUz1L6Nlcj8XJuOgSbff2SyMC9BFlIX7I.Aqy3kdMNRDi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.5ms) +Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:16.227386', "current_sign_in_at" = '2013-03-02 14:43:16.226860', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:16.226860' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.2ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #3"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.5ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.1ms) +Completed 200 OK in 126ms (Views: 123.5ms | ActiveRecord: 1.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$PVHukT3n70hb.Gn2JBnnw.4T/exdwzPJ5exZ161CGM.jNycXD3qMi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.6ms) +Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:16.462023', "current_sign_in_at" = '2013-03-02 14:43:16.461494', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:16.461494' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.7ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (126.9ms) +Completed 200 OK in 129ms (Views: 126.0ms | ActiveRecord: 1.5ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (181.3ms) +Completed 200 OK in 183ms (Views: 181.2ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$B38QlvJ2HAAN0BnQebMay.18.U8WaBUl90u9vMrlOY/N/8RIp4AmG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:16.832399', "current_sign_in_at" = '2013-03-02 14:43:16.831862', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:16.831862' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.8ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:16 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:16 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.2ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (181.7ms) +Completed 200 OK in 184ms (Views: 181.4ms | ActiveRecord: 1.0ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.9ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.7ms) +Completed 200 OK in 127ms (Views: 124.6ms | ActiveRecord: 1.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:17 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$2u67mGjG5tfi6Mk9eP9j1.W7GKz1kGc5wNlPfENKboAQXJsFPZM0m"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:17 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "current_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "updated_at" = '2013-03-02 14:43:17.203801', "current_sign_in_at" = '2013-03-02 14:43:17.203207', "last_sign_in_ip" = '127.0.0.1', "last_sign_in_at" = '2013-03-02 14:43:17.203207' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 10ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:17 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:17 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:17 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (185.4ms) +Completed 200 OK in 187ms (Views: 185.1ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:17 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (124.3ms) +Completed 200 OK in 126ms (Views: 124.1ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 + SQL (0.9ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$aaml2HsY2pwnJb4HhFpqQOx7cnanNnzQUR8ssti8GwpFLWF2TnfmG"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.0ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (22.6ms) +Completed 200 OK in 74ms (Views: 73.0ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example1@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example1@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-02 14:43:49.613833', "updated_at" = '2013-03-02 14:43:49.619635', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-02 14:43:49.613833', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 17ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.6ms) +Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.0ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #2"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #1"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.1ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.1ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (187.2ms) +Completed 200 OK in 192ms (Views: 188.5ms | ActiveRecord: 0.8ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example2@example.com"], ["encrypted_password", "$2a$04$E7pK0uxRFJBWsL93ZcArjOt95dlQDlZbmUtpbqdb0Y2aR3CqbeYge"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (6.8ms) +Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example2@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example2@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-02 14:43:49.880283', "updated_at" = '2013-03-02 14:43:49.880816', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-02 14:43:49.880283', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.4ms) +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #4"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #3"], ["parent_id", 1], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:49 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY "categories"."lft" LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.0ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 2 THEN 1 ELSE "parent_id" END)) ORDER BY "categories"."lft") + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 2 AND "categories"."lft" < 3) AND ("categories".id != 2) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) + SQL (0.1ms) UPDATE "categories" SET "depth" = 1 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.1ms) SELECT COUNT(*) FROM "categories" WHERE ("categories"."lft" <= 2 AND "categories"."rgt" >= 3) AND ("categories".id != 2) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = 1 ORDER BY lft ASC LIMIT 1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:49 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.6ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" < 2) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1 AND ("categories".id != 2) AND ("categories"."lft" > 2) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (135.9ms) +Completed 200 OK in 138ms (Views: 135.2ms | ActiveRecord: 1.4ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example3@example.com"], ["encrypted_password", "$2a$04$tGihAJeXZ8U7.YW7xcTdHuMm26oavbwuVoXnoZysxdonYieX7oZcO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.3ms) +Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example3@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example3@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-02 14:43:50.120864', "updated_at" = '2013-03-02 14:43:50.121489', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-02 14:43:50.120864', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (6.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.1ms) +  (0.1ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #5"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #6"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (125.5ms) +Completed 200 OK in 127ms (Views: 125.3ms | ActiveRecord: 0.8ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (182.2ms) +Completed 200 OK in 184ms (Views: 182.0ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example4@example.com"], ["encrypted_password", "$2a$04$a8vC4JOvi8XoBCyRAYv4feLdf1mhSYCvGCmXPgdzTnBK/lMGmKGRC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.2ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example4@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example4@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-02 14:43:50.490683', "updated_at" = '2013-03-02 14:43:50.491206', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-02 14:43:50.490683', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.2ms) +Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #7"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.1ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #8"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (179.1ms) +Completed 200 OK in 181ms (Views: 178.9ms | ActiveRecord: 0.9ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  +  (0.0ms) SELECT COUNT(*) FROM "categories" + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count  + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (128.5ms) +Completed 200 OK in 131ms (Views: 128.9ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + AdminUser Exists (0.1ms) SELECT 1 AS one FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 + SQL (0.2ms) INSERT INTO "admin_users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "example5@example.com"], ["encrypted_password", "$2a$04$77Fn49yY/Z6kN0JNGeW48.9NCeOgw76ofzj56A/1ea4RdlRMQN7v."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#new as HTML + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (0.3ms) + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (7.0ms) +Completed 200 OK in 8ms (Views: 8.1ms | ActiveRecord: 0.0ms) +Started POST "/admin/login" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by ActiveAdmin::Devise::SessionsController#create as HTML + Parameters: {"commit"=>"Login", "utf8"=>"✓", "admin_user"=>{"remember_me"=>"0", "password"=>"[FILTERED]", "email"=>"example5@example.com"}} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'example5@example.com' LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-03-02 14:43:50.857992', "updated_at" = '2013-03-02 14:43:50.858549', "last_sign_in_ip" = '127.0.0.1', "sign_in_count" = 1, "current_sign_in_at" = '2013-03-02 14:43:50.857992', "current_sign_in_ip" = '127.0.0.1' WHERE "admin_users"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/admin +Completed 302 Found in 5ms (ActiveRecord: 0.0ms) +Started GET "/admin" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::DashboardController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (5.1ms) +Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["depth", nil], ["lft", 1], ["name", "Category #9"], ["parent_id", nil], ["rgt", 2], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."rgt" desc LIMIT 1 + SQL (0.2ms) INSERT INTO "categories" ("created_at", "depth", "lft", "name", "parent_id", "rgt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00], ["depth", nil], ["lft", 3], ["name", "Category #10"], ["parent_id", nil], ["rgt", 4], ["updated_at", Sat, 02 Mar 2013 14:43:50 UTC +00:00]] + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 2 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:50 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (183.4ms) +Completed 200 OK in 185ms (Views: 183.3ms | ActiveRecord: 0.7ms) +Started GET "/admin/categories/1/move_down" for 127.0.0.1 at Sat Mar 02 15:43:51 +0100 2013 +Processing by Admin::CategoriesController#move_down as HTML + Parameters: {"id"=>"1"} + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? ORDER BY lft ASC LIMIT 1 [["id", "1"]] + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) UPDATE "categories" SET "lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE (not ("lft" = CASE WHEN "lft" BETWEEN 1 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 1 - 3 ELSE "lft" END AND "rgt" = CASE WHEN "rgt" BETWEEN 1 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 1 - 3 ELSE "rgt" END AND "parent_id" = CASE WHEN id = 1 THEN NULL ELSE "parent_id" END)) ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + Category Load (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) UPDATE "categories" SET "depth" = 0 WHERE "categories"."id" IN (SELECT "categories"."id" FROM "categories" WHERE "categories"."id" = 1 ORDER BY "categories"."lft") +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE ("categories"."lft" >= 3 AND "categories"."lft" < 4) AND ("categories".id != 1) ORDER BY "categories"."lft" + Category Load (0.0ms) SELECT "categories"."lft", "categories"."rgt", "categories"."parent_id" FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/admin/categories +Completed 302 Found in 8ms (ActiveRecord: 0.8ms) +Started GET "/admin/categories" for 127.0.0.1 at Sat Mar 02 15:43:51 +0100 2013 +Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.1ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1 +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count +  (0.0ms) SELECT COUNT(*) FROM "categories"  + CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "categories" LIMIT 30 OFFSET 0) subquery_for_count + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY "categories"."lft" asc LIMIT 30 OFFSET 0 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" < 1) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" < 3) ORDER BY "categories"."lft" DESC, "categories"."lft" ASC LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 2) AND ("categories"."lft" > 1) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" IS NULL AND ("categories".id != 1) AND ("categories"."lft" > 3) ORDER BY "categories"."lft" LIMIT 1 + Category Load (0.1ms) SELECT "categories".* FROM "categories" ORDER BY lft ASC + Rendered /home/robo/.rvm/gems/ruby-1.8.7-p330@active_admin-awesome_nested_set/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (121.3ms) +Completed 200 OK in 123ms (Views: 121.1ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction diff --git a/test/dummy/public/404.html b/spec/dummy/public/404.html similarity index 100% rename from test/dummy/public/404.html rename to spec/dummy/public/404.html diff --git a/test/dummy/public/422.html b/spec/dummy/public/422.html similarity index 100% rename from test/dummy/public/422.html rename to spec/dummy/public/422.html diff --git a/test/dummy/public/500.html b/spec/dummy/public/500.html similarity index 100% rename from test/dummy/public/500.html rename to spec/dummy/public/500.html diff --git a/test/dummy/public/favicon.ico b/spec/dummy/public/favicon.ico similarity index 100% rename from test/dummy/public/favicon.ico rename to spec/dummy/public/favicon.ico diff --git a/test/dummy/script/rails b/spec/dummy/script/rails similarity index 100% rename from test/dummy/script/rails rename to spec/dummy/script/rails diff --git a/spec/dummy/spec b/spec/dummy/spec new file mode 120000 index 0000000..409f032 --- /dev/null +++ b/spec/dummy/spec @@ -0,0 +1 @@ +../../spec \ No newline at end of file diff --git a/spec/dummy/test/factories/categories.rb b/spec/dummy/test/factories/categories.rb new file mode 100644 index 0000000..85138b8 --- /dev/null +++ b/spec/dummy/test/factories/categories.rb @@ -0,0 +1,11 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + +FactoryGirl.define do + factory :category do + name "MyString" + lft 1 + rgt 1 + parent_id 1 + "" + end +end diff --git a/spec/factories/admin_user_factories.rb b/spec/factories/admin_user_factories.rb new file mode 100644 index 0000000..351ebc2 --- /dev/null +++ b/spec/factories/admin_user_factories.rb @@ -0,0 +1,7 @@ +FactoryGirl.define do + factory :admin_user do + sequence(:email) { |i| "example#{i}@example.com" } + password "password" + password_confirmation "password" + end +end diff --git a/spec/factories/category_factories.rb b/spec/factories/category_factories.rb new file mode 100644 index 0000000..e16ff71 --- /dev/null +++ b/spec/factories/category_factories.rb @@ -0,0 +1,10 @@ +FactoryGirl.define do + factory :category do + sequence(:name) { |i| "Category ##{i}" } + + factory :subcategory do + association :parent, :factory => :category + end + end +end + diff --git a/spec/features/categories_admin_feature_spec.rb b/spec/features/categories_admin_feature_spec.rb new file mode 100644 index 0000000..263dcbe --- /dev/null +++ b/spec/features/categories_admin_feature_spec.rb @@ -0,0 +1,170 @@ +require 'spec_helper' + +feature 'Category admin' do + include ActiveAdmin::SignInHelper + + def set_locale + I18n.locale = :en + end + + def set_admin_area_path + @admin_area_path = "/admin" + end + + def set_resource_path + @resource_path = "categories" + end + + def set_resource_class + @resource_class = Category + end + + def set_resource_factory_name + @resource_factory_name = @resource_class.to_s.underscore.gsub('/', '_').to_sym + end + + def set_index_check_column + @index_check_column = :name + end + + def prepare_for_new + end + + def fill_new_form + fill_in 'category[name]', :with => 'An example category' + end + + def fill_edit_form + fill_in 'category[name]', :with => 'An updated example category' + end + + background do + admin_user = FactoryGirl.create(:admin_user) + sign_in_with(admin_user.email, admin_user.password) + + set_locale + set_admin_area_path + set_resource_class + set_resource_path + set_resource_factory_name + end + + describe 'new' do + background do + @resource_count = @resource_class.count + prepare_for_new + visit "#{@admin_area_path}/#{@resource_path}/new" + end + + scenario 'should be visitable' do + page.current_path.should eq("#{@admin_area_path}/#{@resource_path}/new") + end # scenario + + scenario 'should have the status code 200' do + page.status_code.should eq(200) + end # scenario + + describe 'when filling the form correctly' do + background do + fill_new_form + find(:xpath, '//input[@type="submit"]').click + end + + scenario 'should have created a record' do + @resource_class.count.should eq(@resource_count + 1) + end # scenario + + scenario 'should have the status code 200' do + page.status_code.should eq(200) + end # scenario + end # describe 'when filling the form correctly' + end # describe 'new' + + describe 'show' do + background do + @resource = FactoryGirl.create(@resource_factory_name) + visit "#{@admin_area_path}/#{@resource_path}/#{@resource.to_param}" + end + + scenario 'should have the status code 200' do + page.status_code.should eq(200) + end # scenario + end # describe 'show' + + describe 'edit' do + background do + @resource = FactoryGirl.create(@resource_factory_name) + visit "#{@admin_area_path}/#{@resource_path}/#{@resource.to_param}/edit" + end + + scenario 'should be visitable' do + page.current_path.should eq("#{@admin_area_path}/#{@resource_path}/#{@resource.to_param}/edit") + end # scenario + + scenario 'should have the status code 200' do + page.status_code.should eq(200) + end # scenario + + describe 'when filling the form correctly' do + background do + @resource_count = @resource_class.count + fill_edit_form + find(:xpath, '//input[@type="submit"]').click + @resource.reload + end + + scenario 'should not have created a record' do + @resource_class.count.should eq(@resource_count) + end # scenario + + scenario 'should have the status code 200' do + page.status_code.should eq(200) + end # scenario + + scenario 'should redirect to the resource show page' do + page.current_path.should eq("#{@admin_area_path}/#{@resource_path}/#{@resource.to_param}") + end # scenario + end # describe 'when filling the form correctly' + + end # describe 'edit' + + describe 'delete' do + background do + @resource = FactoryGirl.create(@resource_factory_name) + @resource_count = @resource_class.count + visit "#{@admin_area_path}/#{@resource_path}/#{@resource.to_param}" + find(:xpath, "//a[@href='#{@admin_area_path}/#{@resource_path}/#{@resource.to_param}' and @data-method='delete']").click + end + + scenario 'should delete the resource' do + @resource_class.count.should eq(@resource_count - 1) + end # scenario + + scenario 'should redirect to the resource index page' do + page.current_path.should eq("#{@admin_area_path}/#{@resource_path}") + end # scenario + end # describe 'delete' + + describe 'index' do + background do + set_index_check_column + @resources = FactoryGirl.create_list(@resource_factory_name, 3) + visit "#{@admin_area_path}/#{@resource_path}" + end + + scenario 'should be visitable' do + page.current_path.should eq("#{@admin_area_path}/#{@resource_path}") + end # scenario + + scenario 'should have the status code 200' do + page.status_code.should eq(200) + end # scenario + + scenario "should show the resources" do + @resources.each do |resource| + page.body.should include(resource.send(@index_check_column.to_sym)) + end + end # scenario + end # describe 'index' +end # feature + diff --git a/spec/features/sortable_tree_feature_spec.rb b/spec/features/sortable_tree_feature_spec.rb new file mode 100644 index 0000000..3da9a88 --- /dev/null +++ b/spec/features/sortable_tree_feature_spec.rb @@ -0,0 +1,53 @@ +require 'spec_helper' + +feature 'Sortable tree' do + include ActiveAdmin::SignInHelper + + background do + I18n.locale = :en + admin_user = FactoryGirl.create(:admin_user) + sign_in_with(admin_user.email, admin_user.password) + end # before + + describe 'Sorting parent items on the admin index page' do + before do + @first_parent = FactoryGirl.create(:category, :parent => nil) + @second_parent = FactoryGirl.create(:category, :parent => nil) + visit '/admin/categories' + end # before + + describe 'Move first item to the second place' do + before do + find(:xpath, "//a[@href='/admin/categories/#{@first_parent.to_param}/move_down']").click + end # before + + scenario 'should have the status code 200' do + page.status_code.should eq(200) + end # scenario + + scenario 'should redirect to the index page' do + page.current_path.should eq("/admin/categories") + end # scenario + + scenario 'should move the item to the second place' do + page.find(:xpath, "(//td[@class='name'])[1]").text.should eq(@second_parent.name) + page.find(:xpath, "(//td[@class='name'])[2]").text.should eq(@first_parent.name) + end # scenario + end + end # describe 'Sorting parent items on the admin index page' + + describe 'Item indentation' do + before do + @child = FactoryGirl.create(:subcategory) + @parent = @child.parent + visit '/admin/categories' + end # before + + it 'should not indent the parent item' do + page.should have_css("span[style='padding-left:0px']", :text => "• #{@parent.name}") + end # it + + it 'should indent the child item' do + end # it + end # describe 'Item indentation' +end # feature 'Sortable tree' diff --git a/spec/models/category_spec.rb b/spec/models/category_spec.rb new file mode 100644 index 0000000..3f150d7 --- /dev/null +++ b/spec/models/category_spec.rb @@ -0,0 +1,7 @@ +require 'spec_helper' + +describe Category do + context 'validations' do + should { validate_presence_of(:name) } + end # context 'validations' +end diff --git a/spec/models/generic_spec.rb b/spec/models/generic_spec.rb new file mode 100644 index 0000000..32618e2 --- /dev/null +++ b/spec/models/generic_spec.rb @@ -0,0 +1,34 @@ +require 'spec_helper' + +describe "ActiveRecord::Base models" do + ActiveRecord::Base.descendants.map(&:to_s).reject() { |m| %w(ActiveAdmin::Comment AdminUser).include?(m) }.each do |model_name| + model = model_name.constantize + describe model do + it "should be an ActiveRecord::Base" do + ActiveRecord::Base.descendants.should include(model) + end + + it "should be instanciable" do + instance = model.new + instance.should be_a model + end + + it "should be valid with correct attribute values" do + instance = FactoryGirl.create(model.to_s.tableize.singularize.underscore.gsub( '/', '_')) + instance.should be_valid + end + + it "should not be valid with empty attributes" do + instance = model.new + instance.should_not be_valid + end + + it "should save with valid attributes" do + instance = FactoryGirl.create(model.to_s.tableize.singularize.underscore.gsub( '/', '_')) + instance.save.should be_true + instance.should be_persisted + end + end + end +end + diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..85ce97c --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,39 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +ENV["RAILS_ENV"] ||= 'test' +require File.expand_path("../dummy/config/environment", __FILE__) +require 'rspec/rails' +require 'rspec/autorun' + +# Requires supporting ruby files with custom matchers and macros, etc, +# in spec/support/ and its subdirectories. +Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} + +RSpec.configure do |config| + # ## Mock Framework + # + # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: + # + # config.mock_with :mocha + # config.mock_with :flexmock + # config.mock_with :rr + + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # If true, the base class of anonymous controllers will be inferred + # automatically. This will be the default behavior in future versions of + # rspec-rails. + config.infer_base_class_for_anonymous_controllers = false + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = "random" +end + diff --git a/spec/support/active_admin/sign_in_helper.rb b/spec/support/active_admin/sign_in_helper.rb new file mode 100644 index 0000000..cb03480 --- /dev/null +++ b/spec/support/active_admin/sign_in_helper.rb @@ -0,0 +1,18 @@ +module ActiveAdmin::SignInHelper + def sign_in(admin_user) + post admin_user_session_path, { + :admin_user => { + :email => admin_user.email, + :password => admin_user.password + } + } + end + + def sign_in_with(email, password) + visit '/admin/login' + fill_in 'admin_user[email]', :with => email + fill_in 'admin_user[password]', :with => password + find(:xpath, '//input[@type="submit"]').click + end +end + diff --git a/spec/support/factory_girl.rb b/spec/support/factory_girl.rb new file mode 100644 index 0000000..4a9b8e1 --- /dev/null +++ b/spec/support/factory_girl.rb @@ -0,0 +1,3 @@ +require 'factory_girl' +FactoryGirl.find_definitions + diff --git a/test/active_admin-awesome_nested_set_test.rb b/test/active_admin-awesome_nested_set_test.rb deleted file mode 100644 index b1e3c8c..0000000 --- a/test/active_admin-awesome_nested_set_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -module ActiveAdmin - class AwesomeNestedSetTest < ActiveSupport::TestCase - test "truth" do - assert_kind_of Module, ActiveAdmin::AwesomeNestedSet - end - end -end diff --git a/test/test_helper.rb b/test/test_helper.rb deleted file mode 100644 index 1e26a31..0000000 --- a/test/test_helper.rb +++ /dev/null @@ -1,15 +0,0 @@ -# Configure Rails Environment -ENV["RAILS_ENV"] = "test" - -require File.expand_path("../dummy/config/environment.rb", __FILE__) -require "rails/test_help" - -Rails.backtrace_cleaner.remove_silencers! - -# Load support files -Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } - -# Load fixtures from the engine -if ActiveSupport::TestCase.method_defined?(:fixture_path=) - ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) -end