diff --git a/Gemfile b/Gemfile index 11316b6..26f410d 100644 --- a/Gemfile +++ b/Gemfile @@ -32,5 +32,5 @@ gem 'sqlite3-ruby', :require => 'sqlite3' gem 'pg' gem 'typus', :git => 'git://github.com/fesplugas/typus.git' gem 'mini_exiftool' -gem "will_paginate", "3.0.pre" +gem 'will_paginate', :git => 'http://github.com/mislav/will_paginate.git', :branch => 'rails3' gem 'rdiscount' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index eaf82d4..0ffdd96 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,6 +4,13 @@ GIT specs: typus (1.0.0.pre8) +GIT + remote: http://github.com/mislav/will_paginate.git + revision: b1a5beeec9f56ecbe3594fcdca76d92b6767ce50 + branch: rails3 + specs: + will_paginate (3.0.pre3) + GEM remote: http://rubygems.org/ specs: @@ -46,6 +53,7 @@ GEM treetop (>= 1.4.5) mime-types (1.16) mini_exiftool (1.0.1) + pg (0.9.0) polyglot (0.3.1) rack (1.2.1) rack-mount (0.6.13) @@ -72,15 +80,15 @@ GEM treetop (1.4.8) polyglot (>= 0.3.1) tzinfo (0.3.23) - will_paginate (3.0.pre) PLATFORMS ruby DEPENDENCIES mini_exiftool + pg rails (= 3.0.0) rdiscount sqlite3-ruby typus! - will_paginate (= 3.0.pre) + will_paginate! diff --git a/app/models/photo.rb b/app/models/photo.rb index 6e04725..47951c8 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -13,6 +13,14 @@ class Photo < ActiveRecord::Base after_create :get_exif @@per_page = 11 + + def to_s + self.title + end + + def name + self.title + end private def get_exif diff --git a/log/development.log b/log/development.log index 45c5fe8..92690cd 100644 --- a/log/development.log +++ b/log/development.log @@ -7793,3 +7793,287 @@ Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/view Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.7ms) Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (99.5ms) Completed 200 OK in 220ms (Views: 123.4ms | ActiveRecord: 0.3ms) + + +Started GET "/admin/categories" for 127.0.0.1 at 2010-10-12 13:31:46 -0400 + Processing by Admin::CategoriesController#index as HTML + AdminUser Load (48.5ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1 + SQL (10.9ms) SELECT COUNT(*) AS count_id FROM "categories" +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (35.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_index.html.erb (0.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (1.1ms) + CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "categories" +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.8ms) + CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "categories" + Category Load (1.7ms) SELECT "categories".* FROM "categories" LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (10.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/index.html.erb within layouts/admin/base (189.3ms) +Completed 200 OK in 397ms (Views: 251.5ms | ActiveRecord: 61.1ms) + + +Started GET "/" for 127.0.0.1 at 2010-10-12 15:47:01 -0400 + Processing by PagesController#index as HTML + Photo Load (19.0ms) SELECT "photos".* FROM "photos" ORDER BY RANDOM() LIMIT 1 +Rendered pages/index.html.erb within layouts/photos (43.0ms) +Completed 200 OK in 196ms (Views: 100.3ms | ActiveRecord: 19.0ms) + + +Started GET "/admin" for 127.0.0.1 at 2010-10-12 15:47:06 -0400 + + +Started GET "/admin/dashboard" for 127.0.0.1 at 2010-10-12 15:47:06 -0400 + Processing by Admin::DashboardController#show as HTML + AdminUser Load (22.5ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/dashboard/_sidebar.html.erb (0.5ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/dashboard/_applications.html.erb (92.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/dashboard/_resources.html.erb (0.5ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (20.1ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (3.2ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/dashboard/show.html.erb within layouts/admin/base (216.9ms) +Completed 200 OK in 430ms (Views: 293.2ms | ActiveRecord: 22.5ms) + + +Started GET "/admin/categories" for 127.0.0.1 at 2010-10-12 15:47:09 -0400 + Processing by Admin::CategoriesController#index as HTML + AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1 + SQL (20.6ms) SELECT COUNT(*) AS count_id FROM "categories" +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_index.html.erb (0.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.9ms) + CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "categories" +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/search/_search.html.erb (0.8ms) + CACHE (0.0ms) SELECT COUNT(*) AS count_id FROM "categories" + Category Load (63.5ms) SELECT "categories".* FROM "categories" LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (10.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (1.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/index.html.erb within layouts/admin/base (152.6ms) +Completed 200 OK in 279ms (Views: 125.2ms | ActiveRecord: 84.2ms) + + +Started GET "/admin/categories/edit/1" for 127.0.0.1 at 2010-10-12 15:47:12 -0400 + 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.4ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.2ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (19.5ms) + Photo Load (1.0ms) SELECT "photos".* FROM "photos" + Photo Load (1.3ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (19.3ms) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + Photo Load (1.7ms) SELECT "photos".* FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (23.5ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (1.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (239.2ms) +Completed 200 OK in 359ms (Views: 268.6ms | ActiveRecord: 4.8ms) + + +Started GET "/admin/categories/edit/1" for 127.0.0.1 at 2010-10-13 03:50:15 -0400 + 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.5ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.2ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (18.4ms) + Photo Load (1.1ms) SELECT "photos".* FROM "photos" + Photo Load (0.8ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (2.6ms) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + Photo Load (0.9ms) SELECT "photos".* FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (7.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.5ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (146.1ms) +Completed 200 OK in 230ms (Views: 154.7ms | ActiveRecord: 3.7ms) + + +Started GET "/admin/categories/edit/1" for 127.0.0.1 at 2010-10-13 03:50:21 -0400 + 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.4ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (2.1ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.1ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (19.4ms) + Photo Load (1.0ms) SELECT "photos".* FROM "photos" + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (2.6ms) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + Photo Load (0.8ms) SELECT "photos".* FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (6.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (145.1ms) +Completed 200 OK in 229ms (Views: 152.7ms | ActiveRecord: 3.4ms) + + +Started GET "/admin/categories/edit/1" for 127.0.0.1 at 2010-10-13 03:50:26 -0400 + 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.4ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + SQL (0.2ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (48.9ms) +Completed in 133ms + +ActionView::Template::Error (undefined method `title' for #): + 3: title(page_title) + 4: %> + 5: + 6: <% content_for :sidebar, build_sidebar %> + 7: + 8:

+ 9: <%= page_title %> + app/models/photo.rb:18:in `to_s' + +Rendered /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) + SQL (0.4ms) SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' +Rendered /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (31.7ms) +Rendered /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/gems/1.9.1/gems/actionpack-3.0.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (63.0ms) + + +Started GET "/admin/categories/edit/1" for 127.0.0.1 at 2010-10-13 03:50:33 -0400 + 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.4ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.2ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.1ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (19.2ms) + Photo Load (35.2ms) SELECT "photos".* FROM "photos" + Photo Load (1.1ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (2.9ms) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + Photo Load (0.9ms) SELECT "photos".* FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (6.5ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (1.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.1ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.7ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (176.9ms) +Completed 200 OK in 296ms (Views: 150.5ms | ActiveRecord: 38.0ms) + + +Started GET "/admin/categories/edit/1" for 127.0.0.1 at 2010-10-13 03:50:44 -0400 + 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.4ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (26.7ms) + Photo Load (1.1ms) SELECT "photos".* FROM "photos" + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (2.7ms) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + Photo Load (0.9ms) SELECT "photos".* FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (6.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.7ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.5ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.0ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (149.8ms) +Completed 200 OK in 236ms (Views: 157.5ms | ActiveRecord: 3.5ms) +DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from at /Users/danbee/Sites/rails/photos/config/environment.rb:5) +DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14) +DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16) +DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from at /Users/danbee/Sites/rails/photos/config/environment.rb:5) +DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7) +DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from at /Users/danbee/Sites/rails/photos/config/environment.rb:5) +DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14) +DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16) +DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from at /Users/danbee/Sites/rails/photos/config/environment.rb:5) +DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7) +DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb. (called from at /Users/danbee/Sites/rails/photos/config/environment.rb:5) +DEPRECATION WARNING: reset_javascript_include_default is deprecated. Please manipulate config.action_view.javascript_expansions[:defaults] directly. (called from block in at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:14) +DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env. (called from block in at /Users/danbee/Sites/rails/photos/vendor/plugins/jrails/rails/init.rb:16) +DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /Users/danbee/Sites/rails/photos/vendor/plugins/paperclip/rails/init.rb. (called from at /Users/danbee/Sites/rails/photos/config/environment.rb:5) +DEPRECATION WARNING: ActionController::Base.cookie_verifier_secret= is deprecated. Please configure it on your application with config.secret_token=. (called from at /Users/danbee/Sites/rails/photos/config/initializers/cookie_verification_secret.rb:7) + + +Started GET "/admin/categories/edit/1" for 127.0.0.1 at 2010-10-13 04:21:22 -0400 + Processing by Admin::CategoriesController#edit as HTML + Parameters: {"id"=>"1"} + SQL (0.6ms)  SELECT name + FROM sqlite_master + WHERE type = 'table' AND NOT name = 'sqlite_sequence' + + AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE ("admin_users"."id" = 1) LIMIT 1 + Category Load (0.4ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/sidebar/_sidebar.html.erb (1.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_edit.html.erb (0.3ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (1.1ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_text.html.erb (0.8ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_string.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/_form.html.erb (51.8ms) + Photo Load (1.0ms) SELECT "photos".* FROM "photos" + Photo Load (0.7ms) SELECT * FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_relate_form.html.erb (1.6ms) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + SQL (0.2ms) SELECT COUNT(*) AS count_id FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) + CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE ("categories"."id" = 1) LIMIT 1 + Photo Load (1.0ms) SELECT "photos".* FROM "photos" INNER JOIN "categories_photos" ON "photos".id = "categories_photos".photo_id WHERE ("categories_photos".category_id = 1 ) LIMIT 15 OFFSET 0 +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/table/_table.html.erb (7.2ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/templates/_has_n.html.erb (0.9ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_header.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_apps.html.erb (2.2ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/helpers/_login_info.html.erb (0.6ms) +Rendered /usr/local/lib/ruby/gems/1.9.1/bundler/gems/typus-e0ce90d39989/app/views/admin/resources/edit.html.erb within layouts/admin/base (161.6ms) +Completed 200 OK in 344ms (Views: 171.4ms | ActiveRecord: 4.2ms)